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: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d9404b57411f7d2e0bb8333a22c805d28d0bb477;p=python Doc nit. --- diff --git a/Doc/library/itertools.rst b/Doc/library/itertools.rst index 3c9f334201..2736263586 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