]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix typo in sorting HOWTO (#98888)
authorpartev <petrosyan@gmail.com>
Mon, 31 Oct 2022 17:58:13 +0000 (13:58 -0400)
committerGitHub <noreply@github.com>
Mon, 31 Oct 2022 17:58:13 +0000 (12:58 -0500)
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
 =============