Kaydet (Commit) a0fc3d37 authored tarafından Georg Brandl's avatar Georg Brandl

#9944: fix typo.

üst aa7fbd95
...@@ -592,7 +592,7 @@ which incur interpreter overhead. ...@@ -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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment