diff options
author | Raymond Hettinger <python@rcn.com> | 2009-03-12 00:31:58 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2009-03-12 00:31:58 (GMT) |
commit | efa7c138b603915e7064055ea8d7718d96d30cbc (patch) | |
tree | 28fab44c10f6928dd1394e118970046c9e4456eb /Doc/library/itertools.rst | |
parent | 351de8017cffc1222d1d229eaa4652e91cd65114 (diff) | |
download | cpython-efa7c138b603915e7064055ea8d7718d96d30cbc.zip cpython-efa7c138b603915e7064055ea8d7718d96d30cbc.tar.gz cpython-efa7c138b603915e7064055ea8d7718d96d30cbc.tar.bz2 |
Issue 5477: Fix buglet in the itertools documentation.
Diffstat (limited to 'Doc/library/itertools.rst')
-rw-r--r-- | Doc/library/itertools.rst | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Doc/library/itertools.rst b/Doc/library/itertools.rst index f1d5aa8..3a57cd9 100644 --- a/Doc/library/itertools.rst +++ b/Doc/library/itertools.rst @@ -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:** |