Skip to content

Commit

Permalink
Hide unnecessary fields
Browse files Browse the repository at this point in the history
  • Loading branch information
zereraz committed Sep 29, 2018
1 parent 72783c4 commit a11db56
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fuzzy/fuzzy.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ import (
)

type StrMetric struct {
InputStr string
inputStr string
DictStr string
Ratio float64
ratio float64
Levenstein int
}

Expand All @@ -25,7 +25,7 @@ func (s StrMetrics) Len() int { return len(s) }

func (s StrMetrics) Swap(i, j int) { s[i], s[j] = s[j], s[i] }

func (s StrMetrics) Less(i, j int) bool { return s[i].Ratio <= s[j].Ratio }
func (s StrMetrics) Less(i, j int) bool { return s[i].ratio <= s[j].ratio }

// TODO: make it concurrent with goroutines
func GetFuzzyCandidates(searchTerm string, dict []string, maxDistance int) StrMetrics {
Expand Down

0 comments on commit a11db56

Please sign in to comment.