Merge pull request #5 from toashd/fix-sample

Fix sample code
---
Looks good, thanks for catching that.
This commit is contained in:
Steve Domino 2015-11-04 14:54:19 -07:00
commit b14eeebb76
1 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ if err := db.Write("fish", "onefish", fish); err != nil {
// Read all fish from the database
fish := []Fish{}
if err := db.Read("fish", fish); err != nil {
if err := db.Read("fish", "", fish); err != nil {
}
@ -38,7 +38,7 @@ if err := db.Read("fish", "onefish", fish); err != nil {
}
// Delete all fish from the database
if err := db.Delete("fish"); err != nil {
if err := db.Delete("fish", ""); err != nil {
}