[Python-checkins] cpython (2.7): #13816: fix two minor style issues. Thanks to Justin Wehnes for the patch.

georg.brandl python-checkins at python.org
Mon Jan 23 20:21:55 CET 2012


http://hg.python.org/cpython/rev/f4f9ab2fd51b
changeset:   74584:f4f9ab2fd51b
branch:      2.7
parent:      74581:8e091e36fc80
user:        Georg Brandl <georg at python.org>
date:        Mon Jan 23 20:19:33 2012 +0100
summary:
  #13816: fix two minor style issues. Thanks to Justin Wehnes for the patch.

files:
  Doc/library/functools.rst |  2 +-
  Doc/library/stdtypes.rst  |  2 +-
  2 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/Doc/library/functools.rst b/Doc/library/functools.rst
--- a/Doc/library/functools.rst
+++ b/Doc/library/functools.rst
@@ -22,7 +22,7 @@
 
 ..  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
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -730,7 +730,7 @@
 | ``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)   |
 +------------------+--------------------------------+----------+

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list