mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 23:28:48 +00:00
Fix #1362 strings.index_any
This commit is contained in:
@@ -504,8 +504,8 @@ index_any :: proc(s, chars: string) -> int {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for c in chars {
|
for c in s {
|
||||||
if i := index_rune(s, c); i >= 0 {
|
if i := index_rune(chars, c); i >= 0 {
|
||||||
return i
|
return i
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user