From: Georg Brandl Date: Mon, 23 Jan 2012 19:19:33 +0000 (+0100) Subject: #13816: fix two minor style issues. Thanks to Justin Wehnes for the patch. X-Git-Tag: v3.2.3rc1~133^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3b65fd7e9784967567e66bd67e9205cbb0d53d3a;p=thirdparty%2FPython%2Fcpython.git #13816: fix two minor style issues. Thanks to Justin Wehnes for the patch. --- diff --git a/Doc/library/functools.rst b/Doc/library/functools.rst index 7d4497966226..737cdd37bdba 100644 --- a/Doc/library/functools.rst +++ b/Doc/library/functools.rst @@ -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 diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index 9e08c659d77e..d32bf872bb0f 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -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) | +------------------+--------------------------------+----------+