Fix tx.Set return arguments.

This commit is contained in:
Bo-Yi Wu 2016-08-02 17:03:04 +08:00 committed by GitHub
parent 912f340175
commit 10f804a09c
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
}) })
``` ```