mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-09 13:01:38 -07:00
803fd8f037
```odin
// Smaller allocation to larger allocation resize
{
// Allocated on CMark's allocator
foo := make([dynamic]int, 13)
for i in 0..<13 {
foo[i] = i
}
fmt.println("Before resize:", foo)
resize(&foo, 42)
fmt.println("After resize:", foo)
delete(foo)
}
```