mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 07:38:48 +00:00
strings: levenshtein_distance: remove do
This commit is contained in:
@@ -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