diff options
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/itertools.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/itertools.rst b/Doc/library/itertools.rst index 3c9f334..2736263 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 |