From 12204df0b5aaad6aeb0f498b702b0fa375fc4f95 Mon Sep 17 00:00:00 2001 From: Ben Johnson Date: Fri, 4 Apr 2014 12:03:04 -0600 Subject: Rename internal local Tx variables. This commit changes the local Tx variables from "t" to "tx". This is partly for consistency with external documentation but also because it just annoys me for some reason. --- example_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'example_test.go') 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 }) -- cgit v1.2.3