summaryrefslogtreecommitdiffstats
path: root/Doc/library/itertools.rst
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2010-12-04 20:51:36 (GMT)
committerRaymond Hettinger <python@rcn.com>2010-12-04 20:51:36 (GMT)
commitd9404b57411f7d2e0bb8333a22c805d28d0bb477 (patch)
treeb6126acd808aceb2e0d61908866d77d3b7fa942b /Doc/library/itertools.rst
parent41ea8ae667625edd662bffc328efeec50a2d82f5 (diff)
downloadcpython-d9404b57411f7d2e0bb8333a22c805d28d0bb477.zip
cpython-d9404b57411f7d2e0bb8333a22c805d28d0bb477.tar.gz
cpython-d9404b57411f7d2e0bb8333a22c805d28d0bb477.tar.bz2
Doc nit.
Diffstat (limited to 'Doc/library/itertools.rst')
-rw-r--r--Doc/library/itertools.rst2
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