fix typo in assign_at_elems

This commit is contained in:
Laytan Laats
2023-12-28 17:10:08 +01:00
parent 33d85adf34
commit 1fa2af213d

View File

@@ -589,7 +589,7 @@ assign_at_elem :: proc(array: ^$T/[dynamic]$E, index: int, arg: E, loc := #calle
@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 {
new_size := index + len(arg)
new_size := index + len(args)
if len(args) == 0 {
ok = true
} else if new_size < len(array) {