diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2021-12-12 01:10:40 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-12 01:10:40 +0000 |
| commit | 4423bc0706a6a1a64cf419720fd65bc723fdf58a (patch) | |
| tree | cdd9d4833d82a756698e1f42a6638b1496dfddba | |
| parent | 8c72813b85e0f6b9fce5655d433c6fe8b91b5b56 (diff) | |
Fix typo
| -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 72f29e5d6..3f703372f 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 s { - if i := index_rune(chars, c); i >= 0 { + for c, i in s { + if index_rune(chars, c) >= 0 { return i } } |