diff options
Diffstat (limited to 'core/strings')
| -rw-r--r-- | core/strings/strings.odin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/strings/strings.odin b/core/strings/strings.odin index a477b9e13..fd3808684 100644 --- a/core/strings/strings.odin +++ b/core/strings/strings.odin @@ -325,7 +325,7 @@ last_index :: proc(s, substr: string) -> int { case n == 1: return last_index_byte(s, substr[0]); case n == len(s): - return substr == s ? 0 : -1; + return 0 if substr == s else -1; case n > len(s): return -1; } |