aboutsummaryrefslogtreecommitdiff
path: root/core/container/small_array/small_array.odin
diff options
context:
space:
mode:
authorsduman <shib.duman@gmail.com>2022-04-28 17:08:48 -0600
committerGitHub <noreply@github.com>2022-04-28 17:08:48 -0600
commit9ce64916e6f6db558d53b9a852e2169b937317f8 (patch)
tree8eff0d0117f3aaa7614c4f641263318e2377706b /core/container/small_array/small_array.odin
parente53ba3b11612db5c52ecf9b523e4d0ed87f7b1ad (diff)
Add missing result parameter names
This adds some missing result parameters names back to pop_front_safe. Currently it the procedure won't compile since it's referencing missing variable names.
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 5cd421c84..4dd16f30c 100644
--- a/core/container/small_array/small_array.odin
+++ b/core/container/small_array/small_array.odin
@@ -86,7 +86,7 @@ pop_back_safe :: proc(a: ^$A/Small_Array($N, $T)) -> (item: T, ok: bool) {
return
}
-pop_front_safe :: proc(a: ^$A/Small_Array($N, $T)) -> (T, bool) {
+pop_front_safe :: proc(a: ^$A/Small_Array($N, $T)) -> (item: T, ok: bool) {
if N > 0 && a.len > 0 {
item = a.data[0]
s := slice(a)
@@ -114,4 +114,4 @@ push_back_elems :: proc(a: ^$A/Small_Array($N, $T), items: ..T) {
append_elem :: push_back
append_elems :: push_back_elems
push :: proc{push_back, push_back_elems}
-append :: proc{push_back, push_back_elems} \ No newline at end of file
+append :: proc{push_back, push_back_elems}