aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-02-27 10:58:10 +0000
committergingerBill <bill@gingerbill.org>2021-02-27 10:58:10 +0000
commitfa09640e7e8cdb8dfcbf91c23f9d82a0b7701454 (patch)
tree350808c0e063e5b2588b0d561cac646d3d3d3dae
parent1f9a2df42b31a8f07fe46d8702074ebf2422f752 (diff)
Fix slice.concatenate
-rw-r--r--core/slice/slice.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/slice/slice.odin b/core/slice/slice.odin
index 504f4f8a7..32d6bea18 100644
--- a/core/slice/slice.odin
+++ b/core/slice/slice.odin
@@ -167,7 +167,7 @@ concatenate :: proc(a: []$T/[]$E, allocator := context.allocator) -> (res: T) {
res = make(T, n, allocator);
i := 0;
for s in a {
- i += copy(b[i:], s);
+ i += copy(res[i:], s);
}
return;
}