From 26afa92faff08c9ffbbbedabe4c1d16a72e81c54 Mon Sep 17 00:00:00 2001 From: Ben Johnson Date: Sat, 15 Mar 2014 09:14:20 -0600 Subject: Fix Bucket.ForEach() comment. --- bucket.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bucket.go') diff --git a/bucket.go b/bucket.go index e1ad2a3..3e3392c 100644 --- a/bucket.go +++ b/bucket.go @@ -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() { -- cgit v1.2.3