From: Raymond Hettinger Date: Mon, 14 Feb 2011 06:03:41 +0000 (+0000) Subject: Fix example for itertools.count(). X-Git-Tag: v2.7.2rc1~323 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=97b31954b748e3e99b31b9202cefb72a45c00ca0;p=python Fix example for itertools.count(). --- diff --git a/Doc/library/itertools.rst b/Doc/library/itertools.rst index 75aa3a5a44..b7f407d6c6 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