From: partev Date: Mon, 31 Oct 2022 17:58:13 +0000 (-0400) Subject: Fix typo in sorting HOWTO (#98888) X-Git-Tag: v3.12.0a2~187 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b86538661038ee23d0be80bb7593e2e7856f059;p=thirdparty%2FPython%2Fcpython.git Fix typo in sorting HOWTO (#98888) --- 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 =============