Skip to content

Commit c68ab0d

Browse files
Apply suggestions from code review
Co-authored-by: Alexander Hentschel <[email protected]>
1 parent cd39e67 commit c68ab0d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

storage/operations.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ type Reader interface {
7777
Get(key []byte) (value []byte, closer io.Closer, err error)
7878

7979
// NewIter returns a new Iterator for the given key prefix range [startPrefix, endPrefix], both inclusive.
80+
// We require that startPrefix ≤ endPrefix (otherwise this function errors).
8081
// Specifically, all keys that meet ANY of the following conditions are included in the iteration:
8182
// - have a prefix equal to startPrefix OR
8283
// - have a prefix equal to the endPrefix OR

0 commit comments

Comments
 (0)