Skip to content

Commit

Permalink
Merge pull request #582 from Masynchin/patch-1
Browse files Browse the repository at this point in the history
Fix comments typo
  • Loading branch information
bbayles committed Nov 24, 2021
2 parents c693e20 + 5926786 commit 08fd4a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions more_itertools/more.py
Expand Up @@ -784,8 +784,8 @@ def intersperse(e, iterable, n=1):
if n == 0:
raise ValueError('n must be > 0')
elif n == 1:
# interleave(repeat(e), iterable) -> e, x_0, e, e, x_1, e, x_2...
# islice(..., 1, None) -> x_0, e, e, x_1, e, x_2...
# interleave(repeat(e), iterable) -> e, x_0, e, x_1, e, x_2...
# islice(..., 1, None) -> x_0, e, x_1, e, x_2...
return islice(interleave(repeat(e), iterable), 1, None)
else:
# interleave(filler, chunks) -> [e], [x_0, x_1], [e], [x_2, x_3]...
Expand Down

0 comments on commit 08fd4a9

Please sign in to comment.