Browse Source

Merge pull request #3052 from laytan/fix-type-assign-at

fix typo in assign_at_elems
Jeroen van Rijn 1 year ago
parent
commit
252fd0e928
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/runtime/core_builtin.odin

+ 1 - 1
core/runtime/core_builtin.odin

@@ -589,7 +589,7 @@ assign_at_elem :: proc(array: ^$T/[dynamic]$E, index: int, arg: E, loc := #calle
 
 
 @builtin
 @builtin
 assign_at_elems :: proc(array: ^$T/[dynamic]$E, index: int, args: ..E, loc := #caller_location) -> (ok: bool, err: Allocator_Error) #no_bounds_check #optional_allocator_error {
 assign_at_elems :: proc(array: ^$T/[dynamic]$E, index: int, args: ..E, loc := #caller_location) -> (ok: bool, err: Allocator_Error) #no_bounds_check #optional_allocator_error {
-	new_size := index + len(arg)
+	new_size := index + len(args)
 	if len(args) == 0 {
 	if len(args) == 0 {
 		ok = true
 		ok = true
 	} else if new_size < len(array) {
 	} else if new_size < len(array) {