mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-18 20:40:28 +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 {
|
||||
if i := index_rune(s, c); i >= 0 {
|
||||
for c in s {
|
||||
if i := index_rune(chars, c); i >= 0 {
|
||||
return i
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user