Tighten example code.

This commit is contained in:
Raymond Hettinger 2008-03-02 11:17:51 +00:00
parent f287f17779
commit 2b7a5c468b
1 changed files with 1 additions and 1 deletions

View File

@ -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]