From fa09640e7e8cdb8dfcbf91c23f9d82a0b7701454 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sat, 27 Feb 2021 10:58:10 +0000 Subject: [PATCH] Fix slice.concatenate --- core/slice/slice.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }