aboutsummaryrefslogtreecommitdiff
path: root/example_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'example_test.go')
-rw-r--r--example_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/example_test.go b/example_test.go
index eeaecf5..3e3758e 100644
--- a/example_test.go
+++ b/example_test.go
@@ -54,8 +54,8 @@ func ExampleDB_View() {
})
// Access data from within a read-only transactional block.
- db.View(func(t *Tx) error {
- v := t.Bucket("people").Get([]byte("john"))
+ db.View(func(tx *Tx) error {
+ v := tx.Bucket("people").Get([]byte("john"))
fmt.Printf("John's last name is %s.\n", string(v))
return nil
})