]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix documentation typo for functools.cmp_to_key (GH-95766) (#95777)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 10 Aug 2022 05:40:15 +0000 (22:40 -0700)
committerGitHub <noreply@github.com>
Wed, 10 Aug 2022 05:40:15 +0000 (00:40 -0500)
Doc/library/functools.rst

index c78818bfab1a51c1cd946b825eb317c2c4dcb0a8..188443c2964d604131fd3abe5f23914bf39118bb 100644 (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.