diff options
| author | gingerBill <bill@gingerbill.org> | 2021-02-27 10:58:10 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-02-27 10:58:10 +0000 |
| commit | fa09640e7e8cdb8dfcbf91c23f9d82a0b7701454 (patch) | |
| tree | 350808c0e063e5b2588b0d561cac646d3d3d3dae /core/slice | |
| parent | 1f9a2df42b31a8f07fe46d8702074ebf2422f752 (diff) | |
Fix slice.concatenate
Diffstat (limited to 'core/slice')
| -rw-r--r-- | core/slice/slice.odin | 2 |
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; } |