]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add Positional only arguments forward slash (/) to sorted() function in Built-in...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 15 Dec 2021 13:00:03 +0000 (05:00 -0800)
committerGitHub <noreply@github.com>
Wed, 15 Dec 2021 13:00:03 +0000 (05:00 -0800)
sorted() function is missing forward slash (/) in Built-in Functions documentation page.

Automerge-Triggered-By: GH:asvetlov
(cherry picked from commit f025ae63dccf96c4a1d781a6438bd9ed1502f0a1)

Co-authored-by: Vivek Vashist <vivekvashist@gmail.com>
Doc/library/functions.rst

index 4aa900c547714fada7f561e64c3f31485d228bfd..8df557e47a16e13e8bea97d9df99e4841c7c634c 100644 (file)
@@ -1527,7 +1527,7 @@ are always available.  They are listed here in alphabetical order.
    :func:`itertools.islice` for an alternate version that returns an iterator.
 
 
-.. function:: sorted(iterable, *, key=None, reverse=False)
+.. function:: sorted(iterable, /, *, key=None, reverse=False)
 
    Return a new sorted list from the items in *iterable*.