diff options
author | Ben Johnson <benbjohnson@yahoo.com> | 2014-01-30 17:04:56 -0500 |
---|---|---|
committer | Ben Johnson <benbjohnson@yahoo.com> | 2014-01-30 17:04:56 -0500 |
commit | 8d5757e9dd1891b3d05f7acc7fe3d5a1d664ff6f (patch) | |
tree | d26fce9fde960698f43f115d792d4fc36d05d53a /cursor.go | |
parent | Merge pull request #1 from benbjohnson/master (diff) | |
download | dedo-8d5757e9dd1891b3d05f7acc7fe3d5a1d664ff6f.tar.gz dedo-8d5757e9dd1891b3d05f7acc7fe3d5a1d664ff6f.tar.xz |
gofmt
Diffstat (limited to 'cursor.go')
-rw-r--r-- | cursor.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 }) } |