Skip to content

Commit 1baa315

Browse files
[3.13] Correct Glossary key function example to use str.casefold instead of str.lower (GH-140316) (#142806)
Co-authored-by: Cameron Beck <94604154+cbkinase@users.noreply.github.com>
1 parent 2818224 commit 1baa315

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/glossary.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,7 @@ Glossary
767767
:func:`itertools.groupby`.
768768

769769
There are several ways to create a key function. For example. the
770-
:meth:`str.lower` method can serve as a key function for case insensitive
770+
:meth:`str.casefold` method can serve as a key function for case insensitive
771771
sorts. Alternatively, a key function can be built from a
772772
:keyword:`lambda` expression such as ``lambda r: (r[0], r[2])``. Also,
773773
:func:`operator.attrgetter`, :func:`operator.itemgetter`, and

0 commit comments

Comments
 (0)