diff options
| author | Arseniy Poroshin <git@axxeny.com> | 2024-03-26 22:39:43 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-26 22:39:43 +0000 |
| commit | 77a0e50298d074f7e30d11116c8172f03877312f (patch) | |
| tree | e6fb64d1a7e2865f6ac64ff67c585513f3ebb81b /core/container/queue | |
| parent | 63d6b4752bcbc5ca28adbd13ef91fee25d4f7465 (diff) | |
fix comments in core:container/queue.
Diffstat (limited to 'core/container/queue')
| -rw-r--r-- | core/container/queue/queue.odin | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/container/queue/queue.odin b/core/container/queue/queue.odin index e46dccb33..e7a60dde0 100644 --- a/core/container/queue/queue.odin +++ b/core/container/queue/queue.odin @@ -189,7 +189,7 @@ pop_front_safe :: proc(q: ^$Q/Queue($T)) -> (elem: T, ok: bool) { return } -// Push multiple elements to the front of the queue +// Push multiple elements to the back of the queue push_back_elems :: proc(q: ^$Q/Queue($T), elems: ..T) -> (ok: bool, err: runtime.Allocator_Error) { n := uint(builtin.len(elems)) if space(q^) < int(n) { @@ -241,7 +241,7 @@ clear :: proc(q: ^$Q/Queue($T)) { } -// Internal growinh procedure +// Internal growing procedure _grow :: proc(q: ^$Q/Queue($T), min_capacity: uint = 0) -> runtime.Allocator_Error { new_capacity := max(min_capacity, uint(8), uint(builtin.len(q.data))*2) n := uint(builtin.len(q.data)) |