diff options
| author | gingerBill <bill@gingerbill.org> | 2021-12-11 12:04:34 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-12-11 12:04:34 +0000 |
| commit | 85f8c8df91022fae3fef996cd45b9e631e6b2a66 (patch) | |
| tree | 8caa4ff3de3b22ef9b8f94d8778bfd0da0dc6606 /core/strings | |
| parent | c88959133365d988c7b7b399408cab58a93e4b99 (diff) | |
Fix `fields_proc` in `strings` and `bytes`
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 7a9744d83..72f29e5d6 100644 --- a/core/strings/strings.odin +++ b/core/strings/strings.odin @@ -1288,7 +1288,7 @@ fields_proc :: proc(s: string, f: proc(rune) -> bool, allocator := context.alloc } if start >= 0 { - append(&substrings, s[start : end]) + append(&substrings, s[start : len(s)]) } return substrings[:] |