mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-03 14:18:47 +00:00
Fix slice.concatenate
This commit is contained in:
@@ -167,7 +167,7 @@ concatenate :: proc(a: []$T/[]$E, allocator := context.allocator) -> (res: T) {
|
|||||||
res = make(T, n, allocator);
|
res = make(T, n, allocator);
|
||||||
i := 0;
|
i := 0;
|
||||||
for s in a {
|
for s in a {
|
||||||
i += copy(b[i:], s);
|
i += copy(res[i:], s);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user