mirror of https://github.com/tidwall/buntdb.git
Fix tx.Set return arguments.
This commit is contained in:
parent
912f340175
commit
10f804a09c
|
@ -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