diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-10-31 18:07:14 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-31 18:07:14 (GMT) |
commit | a4f8db19ad239fd0b4ef8d5d6f20666c8611e7a5 (patch) | |
tree | dccc133eb8eda8d0f5a04df9bbf2179b4e0800ba | |
parent | 43cbb3df9a1da7666ed76b83d206ad804618017f (diff) | |
download | cpython-a4f8db19ad239fd0b4ef8d5d6f20666c8611e7a5.zip cpython-a4f8db19ad239fd0b4ef8d5d6f20666c8611e7a5.tar.gz cpython-a4f8db19ad239fd0b4ef8d5d6f20666c8611e7a5.tar.bz2 |
Fix typo in sorting HOWTO (GH-98888)
(cherry picked from commit 3b86538661038ee23d0be80bb7593e2e7856f059)
Co-authored-by: partev <petrosyan@gmail.com>
-rw-r--r-- | Doc/howto/sorting.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/howto/sorting.rst b/Doc/howto/sorting.rst index 588e895..decce12 100644 --- a/Doc/howto/sorting.rst +++ b/Doc/howto/sorting.rst @@ -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 ============= |