commit | 97b31954b748e3e99b31b9202cefb72a45c00ca0 | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Mon Feb 14 06:03:41 2011 +0000 |
committer | Raymond Hettinger <python@rcn.com> | Mon Feb 14 06:03:41 2011 +0000 |
tree | eb4f9b37a02d39fd9d3b89462af000bb58db38ac | |
parent | ba516cb83eb5fd2fbd680c449c6f8da58818fd28 [diff] |
Fix example for itertools.count().
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 @@ 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