[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:
Miss Islington (bot) 2022-08-10 03:54:57 -07:00 committed by GitHub
parent c6aa68fdf5
commit 25d0a81e62
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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