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
  • Loading branch information
rffontenelle authored Oct 12, 2024
1 parent 979c0df commit 5a074aa
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 5a074aa

Please sign in to comment.