diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-08-10 05:40:15 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-10 05:40:15 (GMT) |
commit | 346aa78af4145135465d68a3b647d55e7366d0b2 (patch) | |
tree | 7f9f6bd5db76768e8fb2b45692f7de72062842c7 | |
parent | 64abb733549df3851b6060a5341700acd5efc62b (diff) | |
download | cpython-346aa78af4145135465d68a3b647d55e7366d0b2.zip cpython-346aa78af4145135465d68a3b647d55e7366d0b2.tar.gz cpython-346aa78af4145135465d68a3b647d55e7366d0b2.tar.bz2 |
Fix documentation typo for functools.cmp_to_key (GH-95766) (#95777)
-rw-r--r-- | Doc/library/functools.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/functools.rst b/Doc/library/functools.rst index c78818b..188443c 100644 --- a/Doc/library/functools.rst +++ b/Doc/library/functools.rst @@ -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. |