Minor fixes

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

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 {