strings: levenshtein_distance: remove do
This commit is contained in:
1 parent
71b1cce517
commit
f026753692
1 file changed
+6
-2
@@ -1826,8 +1826,12 @@ levenshtein_distance :: proc(a, b: string, allocator := context.allocator) -> in
|
|||||||
|
|
||||||
m, n := utf8.rune_count_in_string(a), utf8.rune_count_in_string(b)
|
m, n := utf8.rune_count_in_string(a), utf8.rune_count_in_string(b)
|
||||||
|
|
||||||
if m == 0 do return n
|
if m == 0 {
|
||||||
if n == 0 do return m
|
return n
|
||||||
|
}
|
||||||
|
if n == 0 {
|
||||||
|
return m
|
||||||
|
}
|
||||||
|
|
||||||
costs: []int
|
costs: []int
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user