diff options
author | Georg Brandl <georg@python.org> | 2012-01-23 19:19:33 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2012-01-23 19:19:33 (GMT) |
commit | dfdc46f2749e784be756855e2ef33ba1bb74e9e8 (patch) | |
tree | 3440cdc1dba76ac9144b25632953f120d3e6db65 /Doc/library | |
parent | 30b13eebfe59d5856cd9f878c42d052880f3b4a3 (diff) | |
download | cpython-dfdc46f2749e784be756855e2ef33ba1bb74e9e8.zip cpython-dfdc46f2749e784be756855e2ef33ba1bb74e9e8.tar.gz cpython-dfdc46f2749e784be756855e2ef33ba1bb74e9e8.tar.bz2 |
#13816: fix two minor style issues. Thanks to Justin Wehnes for the patch.
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/functools.rst | 2 | ||||
-rw-r--r-- | Doc/library/stdtypes.rst | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/functools.rst b/Doc/library/functools.rst index 09e6a3b..98a21e3 100644 --- a/Doc/library/functools.rst +++ b/Doc/library/functools.rst @@ -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 diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index f54d8de..f309868 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -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) | +------------------+--------------------------------+----------+ |