Skip to content

Commit

Permalink
fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
harshil-goel committed Sep 12, 2024
1 parent ef88e2b commit d0906d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iterator.go
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ func (it *Iterator) Next() {

// Set next item to current
it.item = it.data.pop()
for it.iitr.Valid() && (!it.opt.Reverse && hasPrefix(it)) {
for it.iitr.Valid() && hasPrefix(it) {
if it.parseItem() {
// parseItem calls one extra next.
// This is used to deal with the complexity of reverse iteration.
Expand Down

0 comments on commit d0906d0

Please sign in to comment.