]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue 5477: Fix buglet in the itertools documentation.
authorRaymond Hettinger <python@rcn.com>
Thu, 12 Mar 2009 00:35:05 +0000 (00:35 +0000)
committerRaymond Hettinger <python@rcn.com>
Thu, 12 Mar 2009 00:35:05 +0000 (00:35 +0000)
Doc/library/itertools.rst

index 8a1d245cf5f39543acb7ed5f8ee8df523e8b2aa2..c0a13050e6f4dbe7cd2937fe87ad27be1272ca1d 100644 (file)
@@ -28,9 +28,10 @@ sequence ``f(0), f(1), ...``.  This toolbox provides :func:`imap` and
 :func:`count` which can be combined to form ``imap(f, count())`` to produce an
 equivalent result.
 
-The tools also work well with the high-speed functions in the :mod:`operator`
-module.  For example, the plus-operator can be mapped across two vectors to
-form an efficient dot-product: ``sum(imap(operator.add, vector1, vector2))``.
+These tools and their built-in counterparts also work well with the high-speed
+functions in the :mod:`operator` module.  For example, the multiplication
+operator can be mapped across two vectors to form an efficient dot-product:
+``sum(imap(operator.mul, vector1, vector2))``.
 
 
 **Infinite Iterators:**