summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-03-27 17:30:55 (GMT)
committerGitHub <noreply@github.com>2021-03-27 17:30:55 (GMT)
commit6fcebbb5a8cea25717804f5be9b6878104748ea5 (patch)
treedc744005152292dec900439ed51fb5dd0031437d
parent9de6451558c38537b2335d6e04e3bf8743c30576 (diff)
downloadcpython-6fcebbb5a8cea25717804f5be9b6878104748ea5.zip
cpython-6fcebbb5a8cea25717804f5be9b6878104748ea5.tar.gz
cpython-6fcebbb5a8cea25717804f5be9b6878104748ea5.tar.bz2
bpo-39231: correct tutorial annotations section (GH-25029)
(cherry picked from commit a53e9a7cf5912a44c5143e353912e44cfcfca7dc) Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
-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 97b4c63..284b68c 100644
--- a/Doc/tutorial/controlflow.rst
+++ b/Doc/tutorial/controlflow.rst
@@ -866,7 +866,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: