From: Raymond Hettinger Date: Mon, 14 Feb 2011 06:01:56 +0000 (+0000) Subject: Fix example for count(). X-Git-Tag: v3.2.1b1~347^2~18 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=725cb96d8a37baefc6a5336c4c49d093549b4217;p=thirdparty%2FPython%2Fcpython.git Fix example for count(). --- diff --git a/Doc/library/itertools.rst b/Doc/library/itertools.rst index 2f2617e099d3..add209153e5a 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