Browse Source

Fix #1362 `strings.index_any`

gingerBill 3 years ago
parent
commit
e2f53ee107
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 chars {
-		if i := index_rune(s, c); i >= 0 {
+	for c in s {
+		if i := index_rune(chars, c); i >= 0 {
 			return i
 		}
 	}