mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 23:28:48 +00:00
Correct set_example in small_array
This commit is contained in:
@@ -231,7 +231,7 @@ Example:
|
|||||||
fmt.println(small_array.slice(&a))
|
fmt.println(small_array.slice(&a))
|
||||||
|
|
||||||
// resizing makes the change visible
|
// resizing makes the change visible
|
||||||
small_array.resize(&a, 100)
|
small_array.non_zero_resize(&a, 100)
|
||||||
fmt.println(small_array.slice(&a))
|
fmt.println(small_array.slice(&a))
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -309,7 +309,7 @@ Example:
|
|||||||
import "core:container/small_array"
|
import "core:container/small_array"
|
||||||
import "core:fmt"
|
import "core:fmt"
|
||||||
|
|
||||||
resize_example :: proc() {
|
non_zero_resize :: proc() {
|
||||||
a: small_array.Small_Array(5, int)
|
a: small_array.Small_Array(5, int)
|
||||||
|
|
||||||
small_array.push_back(&a, 1)
|
small_array.push_back(&a, 1)
|
||||||
|
|||||||
Reference in New Issue
Block a user