Skip to content

Commit

Permalink
[3.13] Doc: Fix a typo in "Function Examples" in the control-flow tut…
Browse files Browse the repository at this point in the history
…orial (GH-125338) (#125341)

Doc: Fix a typo in "Function Examples" in the control-flow tutorial (GH-125338)
(cherry picked from commit 5a074aa)

Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
  • Loading branch information
miss-islington and rffontenelle authored Oct 12, 2024
1 parent 21764ec commit a314026
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 a314026

Please sign in to comment.