Fix #1362 strings.index_any
This commit is contained in:
1 parent
94bad4d786
commit
e2f53ee107
1 file changed
+2
-2
@@ -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