diff options
author | Luke Champine <luke.champine@gmail.com> | 2015-09-21 15:49:06 -0400 |
---|---|---|
committer | Luke Champine <luke.champine@gmail.com> | 2015-09-21 15:49:06 -0400 |
commit | 5f9559f227d35426880a20cda02363ee0e27fb2b (patch) | |
tree | 1fe29bdffebd425ba06c9aeb7d5f9fbd8f832591 /bucket.go | |
parent | Merge pull request #418 from benbjohnson/revert-arm64 (diff) | |
download | dedo-5f9559f227d35426880a20cda02363ee0e27fb2b.tar.gz dedo-5f9559f227d35426880a20cda02363ee0e27fb2b.tar.xz |
Document undefined behavior in ForEach
Diffstat (limited to 'bucket.go')
-rw-r--r-- | bucket.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -346,7 +346,8 @@ func (b *Bucket) NextSequence() (uint64, error) { // ForEach executes a function for each key/value pair in a bucket. // If the provided function returns an error then the iteration is stopped and -// the error is returned to the caller. +// the error is returned to the caller. The provided function must not modify +// the bucket; this will result in undefined behavior. func (b *Bucket) ForEach(fn func(k, v []byte) error) error { if b.tx.db == nil { return ErrTxClosed |