Skip to content

Commit 9f49267

Browse files
committed
update comments
1 parent eebde06 commit 9f49267

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

storage/operation/reads.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ type CreateFunc func() interface{}
3131
type HandleFunc func() error
3232
type IterationFunc func() (CheckFunc, CreateFunc, HandleFunc)
3333

34-
// IterateKey will iterate over all entries in the database, where the key starts with a prefixes in
34+
// IterateKeysByPrefixRange will iterate over all entries in the database, where the key starts with a prefixes in
3535
// the range [startPrefix, endPrefix] (both inclusive). We require that startPrefix <= endPrefix (otherwise this
3636
// function errors). On every such key, the `check` function is called. If `check` errors, iteration is aborted.
3737
// In other words, error returned by the iteration functions will be propagated to the caller.
@@ -48,7 +48,7 @@ func IterateKeysByPrefixRange(r storage.Reader, startPrefix []byte, endPrefix []
4848
}, storage.IteratorOption{BadgerIterateKeyOnly: true})
4949
}
5050

51-
// IterateKey will iterate over all entries in the database, where the key starts with a prefixes in
51+
// IterateKeys will iterate over all entries in the database, where the key starts with a prefixes in
5252
// the range [startPrefix, endPrefix] (both inclusive).
5353
// No errors expected during normal operations.
5454
func IterateKeys(r storage.Reader, startPrefix []byte, endPrefix []byte, iterFunc IterationFunc, opt storage.IteratorOption) error {

0 commit comments

Comments
 (0)