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

Skip to content

Commit 37a80dc

Browse files
committed
Fix the example output of count().
1 parent ee31e31 commit 37a80dc

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
@@ -246,7 +246,7 @@ loops that truncate the stream.
246246

247247
def count(start=0, step=1):
248248
# count(10) --> 10 11 12 13 14 ...
249-
# count(2.5, 0.5) -> 3.5 3.0 4.5 ...
249+
# count(2.5, 0.5) -> 2.5 3.0 3.5 ...
250250
n = start
251251
while True:
252252
yield n

0 commit comments

Comments
 (0)