https://github.com/python/cpython/commit/231fa23f3fe83ca3738727d45009916926d31216 commit: 231fa23f3fe83ca3738727d45009916926d31216 branch: 3.6 author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com> committer: Raymond Hettinger <rhettinger at users.noreply.github.com> date: 2018年02月04日T10:16:33-08:00 summary: Fix typo -- missing "not" (GH-5528) (GH-5531) files: M Doc/library/collections.rst diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst index 97f513533ed8..82ba05737413 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())``.