]> granicus.if.org Git - python/commitdiff
Fix example for count().
authorRaymond Hettinger <python@rcn.com>
Mon, 14 Feb 2011 06:01:56 +0000 (06:01 +0000)
committerRaymond Hettinger <python@rcn.com>
Mon, 14 Feb 2011 06:01:56 +0000 (06:01 +0000)
Doc/library/itertools.rst

index 2f2617e099d36c607999e7639980f9531023fc4b..add209153e5a470550ca990f82e493d6a446520b 100644 (file)
@@ -229,7 +229,7 @@ loops that truncate the stream.
 
       def count(start=0, step=1):
           # count(10) --> 10 11 12 13 14 ...
-          # count(2.5, 0.5) -> 3.5 3.0 4.5 ...
+          # count(2.5, 0.5) -> 2.5 3.0 3.5 ...
           n = start
           while True:
               yield n