From ca6c125f10a39ef59d6949cc793a6eeb7d02d1f6 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Sun, 4 Feb 2018 09:15:01 -0800 Subject: [PATCH] Fix typo -- missing "not" (GH-5528) --- 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 256bf02da47..96475b9f490 100644 --- a/Doc/library/collections.rst +++ b/Doc/library/collections.rst @@ -514,7 +514,7 @@ or subtracting from an empty counter. 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 + 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())``.