mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
Fix documentation typo for functools.cmp_to_key (GH-95766)
This commit is contained in:
parent
330f1d5828
commit
f83b0cabeb
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