Skip to content

Commit cc5eb93

Browse files
bpo-42489: Fix the signature for list.sort() in the tutorial (GH-23538)
(cherry picked from commit d41ec65) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
1 parent df6c8bc commit cc5eb93

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)