From 10f804a09cd6c96a2118b3b314e9b26b0ea72d7d Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Tue, 2 Aug 2016 17:03:04 +0800 Subject: [PATCH] Fix tx.Set return arguments. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f26a896..75ac75c 100644 --- a/README.md +++ b/README.md @@ -119,7 +119,7 @@ To set a value you must open a read/write transaction: ```go err := db.Update(func(tx *buntdb.Tx) error { - err := tx.Set("mykey", "myvalue", nil) + _, _, err := tx.Set("mykey", "myvalue", nil) return err }) ```