diff options
author | Ben Johnson <benbjohnson@yahoo.com> | 2014-03-15 09:14:20 -0600 |
---|---|---|
committer | Ben Johnson <benbjohnson@yahoo.com> | 2014-03-15 09:14:20 -0600 |
commit | 26afa92faff08c9ffbbbedabe4c1d16a72e81c54 (patch) | |
tree | 0b6d1449b34345fca0a13489340ebdc1bf4e84c9 /bucket.go | |
parent | Merge pull request #66 from tv42/testing-short (diff) | |
download | dedo-26afa92faff08c9ffbbbedabe4c1d16a72e81c54.tar.gz dedo-26afa92faff08c9ffbbbedabe4c1d16a72e81c54.tar.xz |
Fix Bucket.ForEach() comment.
Diffstat (limited to 'bucket.go')
-rw-r--r-- | bucket.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -115,7 +115,8 @@ func (b *Bucket) NextSequence() (int, error) { } // ForEach executes a function for each key/value pair in a bucket. -// An error is returned if the bucket cannot be found. +// If the provided function returns an error then the iteration is stopped and +// the error is returned to the caller. func (b *Bucket) ForEach(fn func(k, v []byte) error) error { c := b.Cursor() for k, v := c.First(); k != nil; k, v = c.Next() { |