summaryrefslogtreecommitdiffstats
path: root/Doc/tutorial
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2020-11-28 15:02:23 (GMT)
committerGitHub <noreply@github.com>2020-11-28 15:02:23 (GMT)
commite1c669b7ed18a81bfaa349726424ff5de9485f0a (patch)
tree784067145295ac854e3fe39112a91c8a9190e1c5 /Doc/tutorial
parent4498e98a6bdf017d3b65fa679baf4c797909beb6 (diff)
downloadcpython-e1c669b7ed18a81bfaa349726424ff5de9485f0a.zip
cpython-e1c669b7ed18a81bfaa349726424ff5de9485f0a.tar.gz
cpython-e1c669b7ed18a81bfaa349726424ff5de9485f0a.tar.bz2
bpo-42489: Fix the signature for list.sort() in the tutorial (GH-23538)
(cherry picked from commit d41ec65ab7411e877ca33d05e8c900feca530635) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Diffstat (limited to 'Doc/tutorial')
-rw-r--r--Doc/tutorial/datastructures.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/tutorial/datastructures.rst b/Doc/tutorial/datastructures.rst
index 0edb73a..b0c2091 100644
--- a/Doc/tutorial/datastructures.rst
+++ b/Doc/tutorial/datastructures.rst
@@ -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