Skip to content

Commit 346aa78

Browse files
Fix documentation typo for functools.cmp_to_key (GH-95766) (#95777)
1 parent 64abb73 commit 346aa78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/functools.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ The :mod:`functools` module defines the following functions:
119119
tool for programs being converted from Python 2 which supported the use of
120120
comparison functions.
121121

122-
A comparison function is any callable that accept two arguments, compares them,
122+
A comparison function is any callable that accepts two arguments, compares them,
123123
and returns a negative number for less-than, zero for equality, or a positive
124124
number for greater-than. A key function is a callable that accepts one
125125
argument and returns another value to be used as the sort key.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy