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. --- cursor.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cursor.go') diff --git a/cursor.go b/cursor.go index 55bf568..2887791 100644 --- a/cursor.go +++ b/cursor.go @@ -259,7 +259,7 @@ func (c *Cursor) keyValue() ([]byte, []byte) { } // node returns the node that the cursor is currently positioned on. -func (c *Cursor) node(t *Tx) *node { +func (c *Cursor) node(tx *Tx) *node { _assert(len(c.stack) > 0, "accessing a node with a zero-length cursor stack") // If the top of the stack is a leaf node then just return it. @@ -270,7 +270,7 @@ func (c *Cursor) node(t *Tx) *node { // Start from root and traverse down the hierarchy. var n = c.stack[0].node if n == nil { - n = t.node(c.stack[0].page.id, nil) + n = tx.node(c.stack[0].page.id, nil) } for _, ref := range c.stack[:len(c.stack)-1] { _assert(!n.isLeaf, "expected branch node") -- cgit v1.2.3