From 8d5757e9dd1891b3d05f7acc7fe3d5a1d664ff6f Mon Sep 17 00:00:00 2001 From: Ben Johnson Date: Thu, 30 Jan 2014 17:04:56 -0500 Subject: gofmt --- cursor.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cursor.go') diff --git a/cursor.go b/cursor.go index 9c2fc25..7b8c9bb 100644 --- a/cursor.go +++ b/cursor.go @@ -7,8 +7,8 @@ import ( type Cursor struct { transaction *Transaction - root pgid - stack []elem + root pgid + stack []elem } // elem represents a node on a page that's on the cursor's stack. @@ -72,7 +72,7 @@ func (c *Cursor) nsearch(key []byte, p *page) { // Binary search for the correct leaf node index. nodes := p.lnodes() - e.index = sort.Search(int(p.count), func(i int) bool { + e.index = sort.Search(int(p.count), func(i int) bool { return bytes.Compare(nodes[i].key(), key) != -1 }) } -- cgit v1.2.3