Fix Bucket.ForEach() comment.

master
Ben Johnson 2014-03-15 09:14:20 -06:00
parent 60fd6f6604
commit 26afa92faf
1 changed files with 2 additions and 1 deletions

View File

@ -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() {