mirror of
https://github.com/python/cpython.git
synced 2025-09-01 14:38:00 +00:00
#9944: fix typo.
This commit is contained in:
parent
aa7fbd9564
commit
a0fc3d37d3
1 changed files with 1 additions and 1 deletions
|
@ -592,7 +592,7 @@ which incur interpreter overhead.
|
||||||
# feed the entire iterator into a zero-length deque
|
# feed the entire iterator into a zero-length deque
|
||||||
collections.deque(iterator, maxlen=0)
|
collections.deque(iterator, maxlen=0)
|
||||||
else:
|
else:
|
||||||
# advance to the emtpy slice starting at position n
|
# advance to the empty slice starting at position n
|
||||||
next(islice(iterator, n, n), None)
|
next(islice(iterator, n, n), None)
|
||||||
|
|
||||||
def nth(iterable, n, default=None):
|
def nth(iterable, n, default=None):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue