[Python-checkins] [docs] Fix typo for functools.cmp_to_key (GH-95766)
ambv
webhook-mailer at python.org
Wed Aug 10 06:55:08 EDT 2022
https://github.com/python/cpython/commit/25d0a81e620538ecad5f67a0b71f7961b45c0ad8
commit: 25d0a81e620538ecad5f67a0b71f7961b45c0ad8
branch: 3.11
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: ambv <lukasz at langa.pl>
date: 2022-08-10T12:54:57+02:00
summary:
[docs] Fix typo for functools.cmp_to_key (GH-95766)
(cherry picked from commit f83b0cabeb101599e6b55e6a1c972d5b8cae18b2)
Co-authored-by: Andrzej Bartosiński <6197476+Neob91 at users.noreply.github.com>
files:
M Doc/library/functools.rst
diff --git a/Doc/library/functools.rst b/Doc/library/functools.rst
index dd4d76ef670..00aca09bc7a 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.
More information about the Python-checkins
mailing list