]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-39231: correct tutorial annotations section (GH-25029)
authorIrit Katriel <iritkatriel@yahoo.com>
Sat, 27 Mar 2021 17:20:58 +0000 (17:20 +0000)
committerGitHub <noreply@github.com>
Sat, 27 Mar 2021 17:20:58 +0000 (13:20 -0400)
Doc/tutorial/controlflow.rst

index 277e5c18562d477c6c6718181dd27296faa583f6..0b09c18170dd8408028ab0467ed255698d0731b2 100644 (file)
@@ -1038,7 +1038,7 @@ function.  Parameter annotations are defined by a colon after the parameter name
 by an expression evaluating to the value of the annotation.  Return annotations are
 defined by a literal ``->``, followed by an expression, between the parameter
 list and the colon denoting the end of the :keyword:`def` statement.  The
-following example has a positional argument, a keyword argument, and the return
+following example has a required argument, an optional argument, and the return
 value annotated::
 
    >>> def f(ham: str, eggs: str = 'eggs') -> str: