#13816: fix two minor style issues. Thanks to Justin Wehnes for the patch.

This commit is contained in:
Georg Brandl 2012-01-23 20:19:33 +01:00
parent 30b13eebfe
commit dfdc46f274
2 changed files with 2 additions and 2 deletions

View 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

View 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) |
+------------------+--------------------------------+----------+