aboutsummaryrefslogtreecommitdiffstats
path: root/deque.go
diff options
context:
space:
mode:
authorRose Hogenson <rosehogenson@posteo.net>2026-10-13 16:39:57 -0700
committerRose Hogenson <rosehogenson@posteo.net>2026-10-13 16:43:22 -0700
commitd39abb22ccfbb6a34ab8ebcbcbffe8f07232485f (patch)
tree390913e1be421119586c0bb1887aed0a1e01b1cb /deque.go
parentFix import path (diff)
downloaddeque-d39abb22ccfbb6a34ab8ebcbcbffe8f07232485f.tar.zst
Update contact infov1.2.2
Diffstat (limited to 'deque.go')
-rw-r--r--deque.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/deque.go b/deque.go
index e8a9018..40a3d6f 100644
--- a/deque.go
+++ b/deque.go
@@ -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