Skip to content

Commit

Permalink
Minor Name Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Likith101 committed Nov 19, 2024
1 parent f287967 commit 1b5a456
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fst_iterator.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ type Iterator interface {

type FuzzyIterator interface {
Iterator
Distance() uint8
EditDistance() uint8
}

// FSTIterator is a structure for iterating key/value pairs in this FST in
Expand Down Expand Up @@ -81,7 +81,7 @@ func newIterator(f *FST, startKeyInclusive, endKeyExclusive []byte,
return rv, nil
}

func (i *FSTIterator) Distance() uint8 {
func (i *FSTIterator) EditDistance() uint8 {
return i.keysDistance
}

Expand Down

0 comments on commit 1b5a456

Please sign in to comment.