]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix documentation typo for functools.cmp_to_key (GH-95766)
authorAndrzej Bartosiński <6197476+Neob91@users.noreply.github.com>
Mon, 8 Aug 2022 06:49:48 +0000 (08:49 +0200)
committerGitHub <noreply@github.com>
Mon, 8 Aug 2022 06:49:48 +0000 (01:49 -0500)
Doc/library/functools.rst

index dd4d76ef6709875d84485ae56cf314eaa9a1b704..00aca09bc7af45323440521bfcfa0be05e4983a3 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.