diff options
| author | gingerBill <bill@gingerbill.org> | 2021-12-11 12:02:23 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-12-11 12:02:23 +0000 |
| commit | e2f53ee107862d7c5b7dca6df3e68add74273336 (patch) | |
| tree | 71bf5e1e0327c51b66d41afcfa4fbc674ad3c8f8 /core/strings | |
| parent | 94bad4d7861c78b9e7191ec0c3114861a1536d5c (diff) | |
Fix #1362 `strings.index_any`
Diffstat (limited to 'core/strings')
| -rw-r--r-- | core/strings/strings.odin | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/strings/strings.odin b/core/strings/strings.odin index a8199e0cf..7a9744d83 100644 --- a/core/strings/strings.odin +++ b/core/strings/strings.odin @@ -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 } } |