diff options
author | Raymond Hettinger <python@rcn.com> | 2011-02-14 06:01:56 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2011-02-14 06:01:56 (GMT) |
commit | 725cb96d8a37baefc6a5336c4c49d093549b4217 (patch) | |
tree | dd89089aedc2716d3cdd5b64feb24ab7778e2a77 | |
parent | c60e306a802f4bbb8f14c5d11bd9abb3abdb42bd (diff) | |
download | cpython-725cb96d8a37baefc6a5336c4c49d093549b4217.zip cpython-725cb96d8a37baefc6a5336c4c49d093549b4217.tar.gz cpython-725cb96d8a37baefc6a5336c4c49d093549b4217.tar.bz2 |
Fix example for count().
-rw-r--r-- | Doc/library/itertools.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/itertools.rst b/Doc/library/itertools.rst index 2f2617e..add2091 100644 --- a/Doc/library/itertools.rst +++ b/Doc/library/itertools.rst @@ -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 |