From 31a207a0d132d2ea9c8869575415a4a6be23512f Mon Sep 17 00:00:00 2001 From: rami3l Date: Thu, 16 Jan 2025 16:37:16 +0800 Subject: [PATCH] docs(deque): clarify `.truncate()`'s behavior when `len < 0` (#1493) --- deque/deque.mbt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deque/deque.mbt b/deque/deque.mbt index 6b10aeaf8..ab168e80c 100644 --- a/deque/deque.mbt +++ b/deque/deque.mbt @@ -862,7 +862,7 @@ pub fn shrink_to_fit[A](self : T[A]) -> Unit { /// the rest. /// /// If `len` is greater than or equal to the deque's current length, this has no -/// effect. +/// effect; if `len` is negative, the function will panic. /// /// Parameters: ///