Skip to content

Commit

Permalink
s/deque/collections.deque/
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffPaine authored Dec 3, 2017
1 parent 1f77a30 commit 5e01b8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -491,10 +491,10 @@ names.insert(0, 'mark')
### Better

```python
names = deque(['raymond', 'rachel', 'matthew', 'roger',
names = collections.deque(['raymond', 'rachel', 'matthew', 'roger',
'betty', 'melissa', 'judith', 'charlie'])

# More efficient with deque
# More efficient with collections.deque
del names[0]
names.popleft()
names.appendleft('mark')
Expand Down

0 comments on commit 5e01b8d

Please sign in to comment.