8000 bpo-42489: Fix the signature for list.sort() in the tutorial (GH-23538) · python/cpython@d41ec65 · GitHub
[go: up one dir, main page]

Skip to content

Commit d41ec65

Browse files
authored
bpo-42489: Fix the signature for list.sort() in the tutorial (GH-23538)
1 parent 8085f74 commit d41ec65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/tutorial/datastructures.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ objects:
7878
Return the number of times *x* appears in the list.
7979

8080

81-
.. method:: list.sort(key=None, reverse=False)
81+
.. method:: list.sort(*, key=None, reverse=False)
8282
:noindex:
8383

8484
Sort the items of the list in place (the arguments can be used for sort

0 commit comments

Comments
 (0)
0