mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
[3.12] Doc: Fix a typo in "Function Examples" in the control-flow tutorial (GH-125338) (#125342)
Doc: Fix a typo in "Function Examples" in the control-flow tutorial (GH-125338)
(cherry picked from commit 5a074aab84)
Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
This commit is contained in:
parent
3f38ea11c0
commit
2264c097e0
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue