Minor fixes

This commit is contained in:
gingerBill committed 2020-11-17 16:36:33 +00:00
1 parent ede25a88f8
commit 11577db6a8
3 files changed
+7 -7

No files matched your search

+1 -1
View File
@@ -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 {