]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Doc: Fix a typo in "Function Examples" in the control-flow tutorial (#125338)
authorRafael Fontenelle <rffontenelle@users.noreply.github.com>
Sat, 12 Oct 2024 00:40:33 +0000 (21:40 -0300)
committerGitHub <noreply@github.com>
Sat, 12 Oct 2024 00:40:33 +0000 (01:40 +0100)
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)