mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-19 06:49:55 -04:00
We were previously using array_slice to get the storage that we were copying the new elements into, using the current length as the offset: `copy(data[len:], ..elems)` However, array_slice returns a slice over `data[0:len]` -- we were using it as if it was `data[0:cap]`. Add array_cap_slice that does this instead. :^)
4.6 KiB
4.6 KiB