10000 fmt · coder/coder@24a04fa · GitHub
[go: up one dir, main page]

Skip to content

Commit 24a04fa

Browse files
committed
fmt
1 parent 06fa1c3 commit 24a04fa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cli/cliutil/levenshtein/levenshtein.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ func Matches(needle string, maxDistance int, haystack ...string) (matches []stri
1818
return matches
1919
}
2020

21-
var ErrMaxDist error = xerrors.New("levenshtein: maxDist exceeded")
21+
var ErrMaxDist = xerrors.New("levenshtein: maxDist exceeded")
2222

2323
// Distance returns the edit distance between a and b using the
2424
// Wagner-Fischer algorithm.
@@ -84,6 +84,7 @@ func Distance(a, b string, maxDist int) (int, error) {
8484

8585
return int(d[m][n]), nil
8686
}
87+
8788
func min[T constraints.Ordered](ts ...T) T {
8889
if len(ts) == 0 {
8990
panic("min: no arguments")

0 commit comments

Comments
 (0)
0