diff options
Diffstat (limited to 'deque.go')
| -rw-r--r-- | deque.go | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,8 +1,10 @@ +// Copyright 2025, 2026 Rose Hogenson <r@roseh.moe> + // Package deque implements a double-ended queue (deque) implemented with a // slice-backed ring buffer. // // This queue has O(1) amortized inserts and removals from both ends of the -// container. It also has O(1) indexing like a vector. +// container. It also has O(1) indexing like a slice. // // The "default" usage of this type as a queue is to use [Deque.PushBack] to add // to the queue, and [Deque.PopFront] to remove from the queue. Iterating over |
