Fix slice.concatenate
This commit is contained in:
1 parent
1f9a2df42b
commit
fa09640e7e
1 file changed
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user