Skip to content

Commit

Permalink
Doc: Fix a typo in "Function Examples" in the control-flow tutorial (p…
Browse files Browse the repository at this point in the history
…ythonGH-125338)

(cherry picked from commit 5a074aa)

Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
  • Loading branch information
rffontenelle authored and miss-islington committed Oct 12, 2024
1 parent 21764ec commit bcb3905
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/tutorial/controlflow.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit bcb3905

Please sign in to comment.