Browse Source

Fix slice.concatenate

gingerBill 4 years ago
parent
commit
fa09640e7e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/slice/slice.odin

+ 1 - 1
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;
 }