[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:
Miss Islington (bot) 2024-10-12 02:47:23 +02:00 committed by GitHub
parent 3f38ea11c0
commit 2264c097e0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)