gingerBill 3 years ago
parent
commit
4423bc0706
1 changed files with 2 additions and 2 deletions
  1. 2 2
      core/strings/strings.odin

+ 2 - 2
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
 		}
 	}