Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
zzyalbert authored and joshua-goldstein committed Feb 6, 2023
1 parent 7b56978 commit 2ec98c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iterator.go
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ func (it *Iterator) Next() {

// Set next item to current
it.item = it.data.pop()
// excapse when current key doesn't have prefix
// escape when current key doesn't have prefix
for it.iitr.Valid() && hasPrefix(it.iitr, it.opt.Prefix) {
if it.parseItem() {
// parseItem calls one extra next.
Expand Down Expand Up @@ -740,7 +740,7 @@ func (it *Iterator) prefetch() {
i := it.iitr
var count int
it.item = nil
// excapse when current key doesn't have prefix
// escape when current key doesn't have prefix
for i.Valid() && hasPrefix(i, it.opt.Prefix) {
if !it.parseItem() {
continue
Expand Down

0 comments on commit 2ec98c3

Please sign in to comment.