diff options
| author | gingerBill <bill@gingerbill.org> | 2020-11-17 16:36:33 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2020-11-17 16:36:33 +0000 |
| commit | 11577db6a84d17998478dc22b607a203cdf00a7e (patch) | |
| tree | d802441753cf323dd1d272c29168d9f1dc7fc45a /core/strings | |
| parent | ede25a88f80e34fdf7eabfbca50878c69cec59d9 (diff) | |
Minor fixes
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 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 { |