Fix typo in sorting HOWTO (#98888)
https://github.com/python/cpython/commit/3b86538661038ee23d0be80bb7593e2e785... commit: 3b86538661038ee23d0be80bb7593e2e7856f059 branch: main author: partev <petrosyan@gmail.com> committer: rhettinger <rhettinger@users.noreply.github.com> date: 2022-10-31T12:58:13-05:00 summary: Fix typo in sorting HOWTO (#98888) files: M Doc/howto/sorting.rst 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 =============
participants (1)
-
rhettinger