mirror of
https://github.com/python/cpython.git
synced 2025-10-04 06:06:44 +00:00
[docs] Fix typo for functools.cmp_to_key (GH-95766)
(cherry picked from commit f83b0cabeb
)
Co-authored-by: Andrzej Bartosiński <6197476+Neob91@users.noreply.github.com>
This commit is contained in:
parent
c6aa68fdf5
commit
25d0a81e62
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
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
|
||||
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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue