]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Correct Glossary key function example to use str.casefold instead of str.lower (...
authorCameron Beck <94604154+cbkinase@users.noreply.github.com>
Tue, 16 Dec 2025 11:44:12 +0000 (06:44 -0500)
committerGitHub <noreply@github.com>
Tue, 16 Dec 2025 11:44:12 +0000 (13:44 +0200)
Doc/glossary.rst

index a4066d42927f64e67de0b15c00b1af47373e0c5a..3a01df99c38caff55b6996dd0cff8a6174dce0fc 100644 (file)
@@ -813,7 +813,7 @@ Glossary
       :func:`itertools.groupby`.
 
       There are several ways to create a key function.  For example. the
-      :meth:`str.lower` method can serve as a key function for case insensitive
+      :meth:`str.casefold` method can serve as a key function for case insensitive
       sorts.  Alternatively, a key function can be built from a
       :keyword:`lambda` expression such as ``lambda r: (r[0], r[2])``.  Also,
       :func:`operator.attrgetter`, :func:`operator.itemgetter`, and