Fix typo in sorting HOWTO (#98888)

This commit is contained in:
partev 2022-10-31 13:58:13 -04:00 committed by GitHub
parent c1c3be0f9d
commit 3b86538661
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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
=============