]> granicus.if.org Git - python/commitdiff
Fix the example output of count().
authorGeorg Brandl <georg@python.org>
Thu, 13 Jan 2011 07:31:18 +0000 (07:31 +0000)
committerGeorg Brandl <georg@python.org>
Thu, 13 Jan 2011 07:31:18 +0000 (07:31 +0000)
Doc/library/itertools.rst

index 69e51090fdb50e8a924e7b33de9dda67587eec6e..757823d9f1d022a66deeab30a49e8944e8ea5fdf 100644 (file)
@@ -246,7 +246,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