mirror of
https://github.com/python/cpython.git
synced 2025-10-03 05:35:59 +00:00
Fix typo in sorting HOWTO (GH-98888)
(cherry picked from commit 3b86538661
)
Co-authored-by: partev <petrosyan@gmail.com>
This commit is contained in:
parent
43cbb3df9a
commit
a4f8db19ad
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
=============
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue