mirror of https://github.com/python/cpython
Fix documentation typo for functools.cmp_to_key (GH-95766)
This commit is contained in:
parent
330f1d5828
commit
f83b0cabeb
|
@ -119,7 +119,7 @@ The :mod:`functools` module defines the following functions:
|
||||||
tool for programs being converted from Python 2 which supported the use of
|
tool for programs being converted from Python 2 which supported the use of
|
||||||
comparison functions.
|
comparison functions.
|
||||||
|
|
||||||
A comparison function is any callable that accept two arguments, compares them,
|
A comparison function is any callable that accepts two arguments, compares them,
|
||||||
and returns a negative number for less-than, zero for equality, or a positive
|
and returns a negative number for less-than, zero for equality, or a positive
|
||||||
number for greater-than. A key function is a callable that accepts one
|
number for greater-than. A key function is a callable that accepts one
|
||||||
argument and returns another value to be used as the sort key.
|
argument and returns another value to be used as the sort key.
|
||||||
|
|
Loading…
Reference in New Issue