aboutsummaryrefslogtreecommitdiff
path: root/core/container/small_array/small_array.odin
diff options
context:
space:
mode:
authorDamian Tarnawski <gthetarnav@gmail.com>2025-09-15 15:29:17 +0200
committerDamian Tarnawski <gthetarnav@gmail.com>2025-09-15 15:29:17 +0200
commite163c20a02a27646ba46fc094a077bb8118d2e1e (patch)
tree474ba6f45be5d16835626264edf7098350f0821c /core/container/small_array/small_array.odin
parent40c8f45a81f33f617ebf276658f465935eb843f6 (diff)
Correct set_example in small_array
Diffstat (limited to 'core/container/small_array/small_array.odin')
-rw-r--r--core/container/small_array/small_array.odin4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/container/small_array/small_array.odin b/core/container/small_array/small_array.odin
index b7c72ed7a..840a8a6fa 100644
--- a/core/container/small_array/small_array.odin
+++ b/core/container/small_array/small_array.odin
@@ -231,7 +231,7 @@ Example:
fmt.println(small_array.slice(&a))
// resizing makes the change visible
- small_array.resize(&a, 100)
+ small_array.non_zero_resize(&a, 100)
fmt.println(small_array.slice(&a))
}
@@ -309,7 +309,7 @@ Example:
import "core:container/small_array"
import "core:fmt"
- resize_example :: proc() {
+ non_zero_resize :: proc() {
a: small_array.Small_Array(5, int)
small_array.push_back(&a, 1)