mirror of
https://github.com/python/cpython.git
synced 2024-11-23 18:04:37 +08:00
Doc: Fix a typo in "Function Examples" in the control-flow tutorial (#125338)
This commit is contained in:
parent
979c0df7c0
commit
5a074aab84
@ -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…
Reference in New Issue
Block a user