Merge pull request #8 from appleboy/patch-1

Fix tx.Set return arguments.
This commit is contained in:
Josh Baker 2016-08-02 03:25:05 -07:00 committed by GitHub
commit 14a6fc65a5
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ To set a value you must open a read/write transaction:
```go ```go
err := db.Update(func(tx *buntdb.Tx) error { err := db.Update(func(tx *buntdb.Tx) error {
err := tx.Set("mykey", "myvalue", nil) _, _, err := tx.Set("mykey", "myvalue", nil)
return err return err
}) })
``` ```