mirror of https://github.com/python/cpython
#13816: fix two minor style issues. Thanks to Justin Wehnes for the patch.
This commit is contained in:
parent
30b13eebfe
commit
dfdc46f274
|
@ -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
|
||||
|
|
|
@ -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) |
|
||||
+------------------+--------------------------------+----------+
|
||||
|
|
Loading…
Reference in New Issue