From 11577db6a84d17998478dc22b607a203cdf00a7e Mon Sep 17 00:00:00 2001 From: gingerBill Date: Tue, 17 Nov 2020 16:36:33 +0000 Subject: Minor fixes --- core/strings/strings.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/strings') diff --git a/core/strings/strings.odin b/core/strings/strings.odin index 93f8fdc69..fd9e7299b 100644 --- a/core/strings/strings.odin +++ b/core/strings/strings.odin @@ -224,7 +224,7 @@ index_byte :: proc(s: string, c: byte) -> int { return -1; } -// Returns i1 if c is not present +// Returns -1 if c is not present last_index_byte :: proc(s: string, c: byte) -> int { for i := len(s)-1; i >= 0; i -= 1 { if s[i] == c { -- cgit v1.2.3