diff options
author | Tommi Virtanen <tv@eagain.net> | 2014-05-04 18:30:30 -0700 |
---|---|---|
committer | Tommi Virtanen <tv@eagain.net> | 2014-05-04 18:30:30 -0700 |
commit | 458400eb82872bd909c69967f094c3ebbdf0d3d9 (patch) | |
tree | 5038d3d22641ad23a8e7597ddbac0fa1508fb715 /cursor.go | |
parent | Merge pull request #148 from benbjohnson/split-spill (diff) | |
download | dedo-458400eb82872bd909c69967f094c3ebbdf0d3d9.tar.gz dedo-458400eb82872bd909c69967f094c3ebbdf0d3d9.tar.xz |
Cursor.Seek validity is indicated by key being nil
Diffstat (limited to 'cursor.go')
-rw-r--r-- | cursor.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -112,7 +112,7 @@ func (c *Cursor) Prev() (key []byte, value []byte) { // Seek moves the cursor to a given key and returns it. // If the key does not exist then the next key is used. If no keys -// follow, a nil value is returned. +// follow, a nil key is returned. func (c *Cursor) Seek(seek []byte) (key []byte, value []byte) { k, v, flags := c.seek(seek) if k == nil { |