Skip to content

Commit

Permalink
Fix typo in Sorting howto (python#92280)
Browse files Browse the repository at this point in the history
The phrase is usually "odds and ends," not "odd and ends."
  • Loading branch information
carljm committed May 4, 2022
1 parent 465fdc0 commit 7d7a378
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Doc/howto/sorting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,8 @@ To convert to a key function, just wrap the old comparison function:
In Python 3.2, the :func:`functools.cmp_to_key` function was added to the
:mod:`functools` module in the standard library.

Odd and Ends
============
Odds and Ends
=============

* For locale aware sorting, use :func:`locale.strxfrm` for a key function or
:func:`locale.strcoll` for a comparison function.
Expand Down

0 comments on commit 7d7a378

Please sign in to comment.