Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a4f8db1

Browse files
Fix typo in sorting HOWTO (GH-98888)
(cherry picked from commit 3b86538) Co-authored-by: partev <[email protected]>
1 parent 43cbb3d commit a4f8db1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/howto/sorting.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ To accommodate those situations, Python provides
247247
:class:`functools.cmp_to_key` to wrap the comparison function
248248
to make it usable as a key function::
249249

250-
sorted(words, key=cmp_to_key(strcoll)
250+
sorted(words, key=cmp_to_key(strcoll)) # locale-aware sort order
251251

252252
Odds and Ends
253253
=============

0 commit comments

Comments
 (0)