Fix documentation typo for functools.cmp_to_key (GH-95766)

This commit is contained in:
Andrzej Bartosiński 2022-08-08 08:49:48 +02:00 committed by GitHub
parent 330f1d5828
commit f83b0cabeb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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.