From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Mon, 31 Oct 2022 18:07:14 +0000 (-0700) Subject: Fix typo in sorting HOWTO (GH-98888) X-Git-Tag: v3.11.1~171 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a4f8db19ad239fd0b4ef8d5d6f20666c8611e7a5;p=thirdparty%2FPython%2Fcpython.git Fix typo in sorting HOWTO (GH-98888) (cherry picked from commit 3b86538661038ee23d0be80bb7593e2e7856f059) Co-authored-by: partev --- diff --git a/Doc/howto/sorting.rst b/Doc/howto/sorting.rst index 588e895b04bd..decce12bf3fa 100644 --- a/Doc/howto/sorting.rst +++ b/Doc/howto/sorting.rst @@ -247,7 +247,7 @@ To accommodate those situations, Python provides :class:`functools.cmp_to_key` to wrap the comparison function to make it usable as a key function:: - sorted(words, key=cmp_to_key(strcoll) + sorted(words, key=cmp_to_key(strcoll)) # locale-aware sort order Odds and Ends =============