mirror of https://github.com/hak5/bolt.git
Fix Bucket.ForEach() comment.
parent
60fd6f6604
commit
26afa92faf
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue