From d9404b57411f7d2e0bb8333a22c805d28d0bb477 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Sat, 4 Dec 2010 20:51:36 +0000 Subject: [PATCH] Doc nit. --- Doc/library/itertools.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/itertools.rst b/Doc/library/itertools.rst index 3c9f334201b..2736263586a 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