mirror of https://github.com/tidwall/buntdb.git
Merge pull request #8 from appleboy/patch-1
Fix tx.Set return arguments.
This commit is contained in:
commit
14a6fc65a5
|
@ -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
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue