]> 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 7d44979662269472717578d5d8c5aa8f68da03fb..737cdd37bdbaa3275bf28de0fc842d383eda39e5 100644 (file)
@@ -20,7 +20,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 9e08c659d77e2324ab90f79a8d79da17b82ca863..d32bf872bb0f2052a94f9b1c9ed0ea09dcdc09d1 100644 (file)
@@ -873,7 +873,7 @@ are sequences of the same type; *n*, *i*, *j* and *k* 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)   |
 +------------------+--------------------------------+----------+