]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix typo in sorting HOWTO (GH-98888)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 31 Oct 2022 18:07:14 +0000 (11:07 -0700)
committerGitHub <noreply@github.com>
Mon, 31 Oct 2022 18:07:14 +0000 (11:07 -0700)
(cherry picked from commit 3b86538661038ee23d0be80bb7593e2e7856f059)

Co-authored-by: partev <petrosyan@gmail.com>
Doc/howto/sorting.rst

index 588e895b04bde24a132fb194857e8490c7fe7aec..decce12bf3faf6b5a96aa6461e159eaa7fdee543 100644 (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
 =============