diff options
| author | Laytan Laats <laytanlaats@hotmail.com> | 2024-08-11 17:09:26 +0200 |
|---|---|---|
| committer | Laytan Laats <laytanlaats@hotmail.com> | 2024-08-11 17:09:26 +0200 |
| commit | 26fa3aca44a01f83447adb45f0f1e31fcc3d2ae6 (patch) | |
| tree | 59eaa65e4071265ef56bd61f84a520dcddf5939a /base | |
| parent | 8a67221bd4e707286b69a9b00a36ff70a4251c85 (diff) | |
fix copy-paste error in `make` docs
Diffstat (limited to 'base')
| -rw-r--r-- | base/runtime/core_builtin.odin | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/base/runtime/core_builtin.odin b/base/runtime/core_builtin.odin index 38ad95be8..e744ad18b 100644 --- a/base/runtime/core_builtin.odin +++ b/base/runtime/core_builtin.odin @@ -350,7 +350,7 @@ _make_dynamic_array_len_cap :: proc(array: ^Raw_Dynamic_Array, size_of_elem, ali return } -// `make_map` allocates and initializes a dynamic array. Like `new`, the first argument is a type, not a value. +// `make_map` allocates and initializes a map. Like `new`, the first argument is a type, not a value. // Unlike `new`, `make`'s return value is the same as the type of its argument, not a pointer to it. // // Note: Prefer using the procedure group `make`. @@ -362,7 +362,7 @@ make_map :: proc($T: typeid/map[$K]$E, #any_int capacity: int = 1<<MAP_MIN_LOG2_ err = reserve_map(&m, capacity, loc) return } -// `make_multi_pointer` allocates and initializes a dynamic array. Like `new`, the first argument is a type, not a value. +// `make_multi_pointer` allocates and initializes a multi-pointer. Like `new`, the first argument is a type, not a value. // Unlike `new`, `make`'s return value is the same as the type of its argument, not a pointer to it. // // This is "similar" to doing `raw_data(make([]E, len, allocator))`. |