]> granicus.if.org Git - python/commitdiff
#13816: fix two minor style issues. Thanks to Justin Wehnes for the patch.
authorGeorg Brandl <georg@python.org>
Mon, 23 Jan 2012 19:19:33 +0000 (20:19 +0100)
committerGeorg Brandl <georg@python.org>
Mon, 23 Jan 2012 19:19:33 +0000 (20:19 +0100)
Doc/library/functools.rst
Doc/library/stdtypes.rst

index 09e6a3b04f6686d3f4983b4c17e739e79814cf83..98a21e3746acc86079bb52dcae264fb681bf6091 100644 (file)
@@ -22,7 +22,7 @@ The :mod:`functools` module defines the following functions:
 
 ..  function:: cmp_to_key(func)
 
-   Transform an old-style comparison function to a key-function.  Used with
+   Transform an old-style comparison function to a key function.  Used with
    tools that accept key functions (such as :func:`sorted`, :func:`min`,
    :func:`max`, :func:`heapq.nlargest`, :func:`heapq.nsmallest`,
    :func:`itertools.groupby`).  This function is primarily used as a transition
index f54d8de176dbd760391a174a7e0d24c45640c7a3..f309868c8de2896ad02785f95c15c4c44c436def 100644 (file)
@@ -730,7 +730,7 @@ are sequences of the same type; *n*, *i* and *j* are integers:
 | ``s * n, n * s`` | *n* shallow copies of *s*      | \(2)     |
 |                  | concatenated                   |          |
 +------------------+--------------------------------+----------+
-| ``s[i]``         | *i*'th item of *s*, origin 0   | \(3)     |
+| ``s[i]``         | *i*\ th item of *s*, origin 0  | \(3)     |
 +------------------+--------------------------------+----------+
 | ``s[i:j]``       | slice of *s* from *i* to *j*   | (3)(4)   |
 +------------------+--------------------------------+----------+