mirror of https://github.com/python/cpython
#9944: fix typo.
This commit is contained in:
parent
aa7fbd9564
commit
a0fc3d37d3
|
@ -592,7 +592,7 @@ which incur interpreter overhead.
|
|||
# feed the entire iterator into a zero-length deque
|
||||
collections.deque(iterator, maxlen=0)
|
||||
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)
|
||||
|
||||
def nth(iterable, n, default=None):
|
||||
|
|
Loading…
Reference in New Issue