aboutsummaryrefslogtreecommitdiff
path: root/core/strings/strings.odin
diff options
context:
space:
mode:
authorLaytan Laats <laytanlaats@hotmail.com>2024-04-03 00:05:31 +0200
committerLaytan Laats <laytanlaats@hotmail.com>2024-04-03 00:52:58 +0200
commit3a0df800664105f5944ad9e0230debe3a3207969 (patch)
treef2ac5c150bae1b0fc62bf6381bded50bfad5b6bf /core/strings/strings.odin
parent21fcf7c8744260c904e7040bdb1d550a0931aa3e (diff)
correct newly found vets
Diffstat (limited to 'core/strings/strings.odin')
-rw-r--r--core/strings/strings.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/strings/strings.odin b/core/strings/strings.odin
index 5cee25a66..13c53f48e 100644
--- a/core/strings/strings.odin
+++ b/core/strings/strings.odin
@@ -809,7 +809,7 @@ _split :: proc(s_, sep: string, sep_save, n_: int, allocator := context.allocato
n = l
}
- res := make([]string, n, allocator, loc) or_return
+ res = make([]string, n, allocator, loc) or_return
for i := 0; i < n-1; i += 1 {
_, w := utf8.decode_rune_in_string(s)
res[i] = s[:w]