Skip to content

Commit

Permalink
Merge pull request #33 from homeworkprod/patch-1
Browse files Browse the repository at this point in the history
Create deque instance directly from range object.
  • Loading branch information
yasoob committed Aug 18, 2015
2 parents 9780b29 + c54553f commit 386360e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion collections.rst
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ You can pop values from both sides of the deque:

.. code:: python
d = deque([i for i in range(5)])
d = deque(range(5))
print(len(d))
# Output: 5
Expand Down

0 comments on commit 386360e

Please sign in to comment.