diff options
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/itertools.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/itertools.rst b/Doc/library/itertools.rst index f26d3bb..dafa6d8 100644 --- a/Doc/library/itertools.rst +++ b/Doc/library/itertools.rst @@ -381,7 +381,7 @@ loops that truncate the stream. for i in reversed(range(r)): cycles[i] -= 1 if cycles[i] == 0: - indices[:] = indices[:i] + indices[i+1:] + indices[i:i+1] + indices[i:] = indices[i+1:] + indices[i:i+1] cycles[i] = n - i else: j = cycles[i] |