summaryrefslogtreecommitdiffstats
path: root/Doc/tutorial
diff options
context:
space:
mode:
authorIrit Katriel <iritkatriel@yahoo.com>2021-03-27 17:20:58 (GMT)
committerGitHub <noreply@github.com>2021-03-27 17:20:58 (GMT)
commita53e9a7cf5912a44c5143e353912e44cfcfca7dc (patch)
treea1dd93650900664dd6aa41c026afda6a74de817e /Doc/tutorial
parentbacefbf41461ab703b8d561f0e3d766427eab367 (diff)
downloadcpython-a53e9a7cf5912a44c5143e353912e44cfcfca7dc.zip
cpython-a53e9a7cf5912a44c5143e353912e44cfcfca7dc.tar.gz
cpython-a53e9a7cf5912a44c5143e353912e44cfcfca7dc.tar.bz2
bpo-39231: correct tutorial annotations section (GH-25029)
Diffstat (limited to 'Doc/tutorial')
-rw-r--r--Doc/tutorial/controlflow.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/tutorial/controlflow.rst b/Doc/tutorial/controlflow.rst
index 277e5c1..0b09c18 100644
--- a/Doc/tutorial/controlflow.rst
+++ b/Doc/tutorial/controlflow.rst
@@ -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: