From: Raymond Hettinger Date: Sat, 4 Dec 2010 20:51:36 +0000 (+0000) Subject: Doc nit. X-Git-Tag: v3.2b1~23 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d9404b57411f7d2e0bb8333a22c805d28d0bb477;p=thirdparty%2FPython%2Fcpython.git Doc nit. --- diff --git a/Doc/library/itertools.rst b/Doc/library/itertools.rst index 3c9f334201b4..2736263586a0 100644 --- a/Doc/library/itertools.rst +++ b/Doc/library/itertools.rst @@ -96,7 +96,7 @@ loops that truncate the stream. total = next(it) yield total for element in it: - total += element + total = total + element yield total .. versionadded:: 3.2