Skip to content

Commit

Permalink
[docs] Fix typo for functools.cmp_to_key (GH-95766)
Browse files Browse the repository at this point in the history
(cherry picked from commit f83b0ca)

Co-authored-by: Andrzej Bartosiński <6197476+Neob91@users.noreply.github.com>
  • Loading branch information
miss-islington and Neob91 committed Aug 10, 2022
1 parent c6aa68f commit 25d0a81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/library/functools.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 25d0a81

Please sign in to comment.