]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-42489: Fix the signature for list.sort() in the tutorial (GH-23538)
authorZackery Spytz <zspytz@gmail.com>
Sat, 28 Nov 2020 14:53:39 +0000 (07:53 -0700)
committerGitHub <noreply@github.com>
Sat, 28 Nov 2020 14:53:39 +0000 (16:53 +0200)
Doc/tutorial/datastructures.rst

index ff4c797f66cd63163457a5553cf813e63158c3e3..5c6b65f05e1e5ffd382a8d63548761af8cd1dc37 100644 (file)
@@ -78,7 +78,7 @@ objects:
    Return the number of times *x* appears in the list.
 
 
-.. method:: list.sort(key=None, reverse=False)
+.. method:: list.sort(*, key=None, reverse=False)
    :noindex:
 
    Sort the items of the list in place (the arguments can be used for sort