]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] Doc: Fix a typo in "Function Examples" in the control-flow tutorial (GH-125338...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 12 Oct 2024 00:47:23 +0000 (02:47 +0200)
committerGitHub <noreply@github.com>
Sat, 12 Oct 2024 00:47:23 +0000 (00:47 +0000)
Doc: Fix a typo in "Function Examples" in the control-flow tutorial (GH-125338)
(cherry picked from commit 5a074aab845f82f4a150c27b905dae05c337d381)

Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
Doc/tutorial/controlflow.rst

index fd765e58ff2485ec0b2c2d79372a2f92984d05ab..9b73ac475c78d5d43972271bfe0fe40d95a02865 100644 (file)
@@ -832,7 +832,7 @@ parameters as there is a ``/`` in the function definition::
      File "<stdin>", line 1, in <module>
    TypeError: pos_only_arg() got some positional-only arguments passed as keyword arguments: 'arg'
 
-The third function ``kwd_only_args`` only allows keyword arguments as indicated
+The third function ``kwd_only_arg`` only allows keyword arguments as indicated
 by a ``*`` in the function definition::
 
    >>> kwd_only_arg(3)