aboutsummaryrefslogtreecommitdiff
path: root/core/strings
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2023-03-16 16:35:30 +0000
committergingerBill <bill@gingerbill.org>2023-03-16 16:35:30 +0000
commit97d7e295ddc6409352d49fa896836ceb8794ea2f (patch)
treeddbc72dbb042ec1cbd82bb6e23d3fca967d7edcd /core/strings
parent0727e91aeb8e3daa7ddac7d3b234c159637db724 (diff)
Fix to `split_multi_iterator`
Diffstat (limited to 'core/strings')
-rw-r--r--core/strings/strings.odin1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/strings/strings.odin b/core/strings/strings.odin
index 91d2defa8..4179f7df8 100644
--- a/core/strings/strings.odin
+++ b/core/strings/strings.odin
@@ -1511,6 +1511,7 @@ split_multi_iterate :: proc(it: ^string, substrs: []string) -> (res: string, ok:
it^ = it[i+w:]
} else {
// last value
+ res = it^
it^ = it[len(it):]
}
ok = true