diff options
| author | Laytan Laats <laytanlaats@hotmail.com> | 2023-12-28 17:10:08 +0100 |
|---|---|---|
| committer | Laytan Laats <laytanlaats@hotmail.com> | 2023-12-28 17:10:08 +0100 |
| commit | 1fa2af213debd4a04be1d88105fdddbcaf5fc14a (patch) | |
| tree | 2e88e89991461f4c7df65339d0150965d9ad7fd5 /core/runtime | |
| parent | 33d85adf349e9f626443c448b88fbe0ba75313c1 (diff) | |
fix typo in assign_at_elems
Diffstat (limited to 'core/runtime')
| -rw-r--r-- | core/runtime/core_builtin.odin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/runtime/core_builtin.odin b/core/runtime/core_builtin.odin index eb9315fab..d3ca42454 100644 --- a/core/runtime/core_builtin.odin +++ b/core/runtime/core_builtin.odin @@ -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) { |