]> granicus.if.org Git - python/commitdiff
Doc nit.
authorRaymond Hettinger <python@rcn.com>
Sat, 4 Dec 2010 20:51:36 +0000 (20:51 +0000)
committerRaymond Hettinger <python@rcn.com>
Sat, 4 Dec 2010 20:51:36 +0000 (20:51 +0000)
Doc/library/itertools.rst

index 3c9f334201b4e8e112acaaf29c8e7d0c474471bc..2736263586a02d5e22d1d628a8dde68988b9bca9 100644 (file)
@@ -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