Skip to content

Commit d2f0a6a

Browse files
authored
Update controlflow.rst
1 parent de547b0 commit d2f0a6a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Doc/tutorial/controlflow.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ There are three forms, which can be combined.
585585
.. _tut-defaultparams:
586586

587587
Default Parameter Values
588-
-----------------------
588+
------------------------
589589

590590
The most useful form is to specify a default value for one or more parameters.
591591
This creates a function that can be called with fewer arguments than it is
@@ -771,9 +771,9 @@ parameter by how the arguments may be passed to the function:
771771
positional-only, positional-or-keyword, and keyword-only. Keyword parameters
772772
are also referred to as named parameters.
773773

774-
-------------------------------
774+
--------------------------------
775775
Positional-or-Keyword Parameters
776-
-------------------------------
776+
--------------------------------
777777

778778
Positional-or-keyword paremeters don't precede ``/``, don't follow ``*`` or ``*args``,
779779
and don't have ``*`` and ``**`` in their names as prefixes, so that arguments can
@@ -793,9 +793,9 @@ parameters.
793793

794794
Parameters following the ``/`` can be *positional-or-keyword* or *keyword-only*.
795795

796-
----------------------
796+
-----------------------
797797
Keyword-Only Parameters
798-
----------------------
798+
-----------------------
799799

800800
To mark parameters as *keyword-only*, indicating their arguments must be passed
801801
by keyword, place parameters after an ``*`` to make them

0 commit comments

Comments
 (0)