aboutsummaryrefslogtreecommitdiff
path: root/core/strings/strings.odin
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2020-11-17 16:36:33 +0000
committergingerBill <bill@gingerbill.org>2020-11-17 16:36:33 +0000
commit11577db6a84d17998478dc22b607a203cdf00a7e (patch)
treed802441753cf323dd1d272c29168d9f1dc7fc45a /core/strings/strings.odin
parentede25a88f80e34fdf7eabfbca50878c69cec59d9 (diff)
Minor fixes
Diffstat (limited to 'core/strings/strings.odin')
-rw-r--r--core/strings/strings.odin2
1 files changed, 1 insertions, 1 deletions
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 {