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

fix typo in assign_at_elems
This commit is contained in:
Jeroen van Rijn
2023-12-28 17:44:20 +01:00
committed by GitHub

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) {