diff options
author | Raymond Hettinger <python@rcn.com> | 2011-02-14 06:03:41 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2011-02-14 06:03:41 (GMT) |
commit | 97b31954b748e3e99b31b9202cefb72a45c00ca0 (patch) | |
tree | eb4f9b37a02d39fd9d3b89462af000bb58db38ac /Doc/library | |
parent | ba516cb83eb5fd2fbd680c449c6f8da58818fd28 (diff) | |
download | cpython-97b31954b748e3e99b31b9202cefb72a45c00ca0.zip cpython-97b31954b748e3e99b31b9202cefb72a45c00ca0.tar.gz cpython-97b31954b748e3e99b31b9202cefb72a45c00ca0.tar.bz2 |
Fix example for itertools.count().
Diffstat (limited to 'Doc/library')
-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 75aa3a5..b7f407d 100644 --- a/Doc/library/itertools.rst +++ b/Doc/library/itertools.rst @@ -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 |