diff options
author | Ben Johnson <benbjohnson@yahoo.com> | 2014-01-30 14:05:26 -0800 |
---|---|---|
committer | Ben Johnson <benbjohnson@yahoo.com> | 2014-01-30 14:05:26 -0800 |
commit | d087fb44197a6e3dcb06ca2b831575c1fc239bcd (patch) | |
tree | 15503ce52ea1346876df77543b24e6c23594cb03 /cursor.go | |
parent | Badges. (diff) | |
parent | gofmt (diff) | |
download | dedo-d087fb44197a6e3dcb06ca2b831575c1fc239bcd.tar.gz dedo-d087fb44197a6e3dcb06ca2b831575c1fc239bcd.tar.xz |
Merge pull request #2 from benbjohnson/master
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 }) } |