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

index 75aa3a5a44c31e8eda0a6732a2b524eded3d09fb..b7f407d6c65ac572acfafd239c3ed7fa778f382e 100644 (file)
@@ -237,7 +237,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