[Python-checkins] Fix typo in Sorting howto (#92280)

JelleZijlstra webhook-mailer at python.org
Tue May 3 23:38:34 EDT 2022


https://github.com/python/cpython/commit/7d7a378c1a351a2074e9e46838718a2dcbef2948
commit: 7d7a378c1a351a2074e9e46838718a2dcbef2948
branch: main
author: Carl Meyer <carl at oddbird.net>
committer: JelleZijlstra <jelle.zijlstra at gmail.com>
date: 2022-05-03T21:38:29-06:00
summary:

Fix typo in Sorting howto (#92280)

The phrase is usually "odds and ends," not "odd and ends."

files:
M Doc/howto/sorting.rst

diff --git a/Doc/howto/sorting.rst b/Doc/howto/sorting.rst
index 32b47711f8570..53cbe01e92144 100644
--- a/Doc/howto/sorting.rst
+++ b/Doc/howto/sorting.rst
@@ -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.



More information about the Python-checkins mailing list