Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 725cb96

Browse files
committed
Fix example for count().
1 parent c60e306 commit 725cb96

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/library/itertools.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ loops that truncate the stream.
229229

230230
def count(start=0, step=1):
231231
# count(10) --> 10 11 12 13 14 ...
232-
# count(2.5, 0.5) -> 3.5 3.0 4.5 ...
232+
# count(2.5, 0.5) -> 2.5 3.0 3.5 ...
233233
n = start
234234
while True:
235235
yield n

0 commit comments

Comments
 (0)