From 08a5c2ef8155d94a70b4ff62aefddf8388587b0d Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Sun, 4 Feb 2018 09:24:03 -0800 Subject: [PATCH] Fix typo -- missing "not" --- Doc/library/collections.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst index a517a2eecfa9d1..679931e089f215 100644 --- a/Doc/library/collections.rst +++ b/Doc/library/collections.rst @@ -316,7 +316,7 @@ counts, but the output will exclude results with counts of zero or less. Rotate the deque *n* steps to the right. If *n* is negative, rotate to the left. - When the deque is empty, rotating one step to the right is equivalent to + When the deque is not empty, rotating one step to the right is equivalent to ``d.appendleft(d.pop())``, and rotating one step to the left is equivalent to ``d.append(d.popleft())``.