Skip to content

Commit 1d3f673

Browse files
Revert "Fix: standardize capitalization in section headings"
This reverts commit 10aadca.
1 parent 10aadca commit 1d3f673

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

Doc/reference/compound_stmts.rst

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ block is selected.
742742

743743
.. _irrefutable_case:
744744

745-
Irrefutable case blocks
745+
Irrefutable Case Blocks
746746
-----------------------
747747

748748
.. index:: irrefutable case block, case block
@@ -804,7 +804,7 @@ the underlying implementation. Furthermore, they do not cover all valid forms.
804804

805805
.. _or-patterns:
806806

807-
OR patterns
807+
OR Patterns
808808
^^^^^^^^^^^
809809

810810
An OR pattern is two or more patterns separated by vertical
@@ -825,7 +825,7 @@ match ``P2``, succeeding immediately if any succeeds, failing otherwise.
825825

826826
.. _as-patterns:
827827

828-
AS patterns
828+
AS Patterns
829829
^^^^^^^^^^^
830830

831831
An AS pattern matches an OR pattern on the left of the :keyword:`as`
@@ -844,7 +844,7 @@ set ``NAME = <subject>``.
844844

845845
.. _literal-patterns:
846846

847-
Literal patterns
847+
Literal Patterns
848848
^^^^^^^^^^^^^^^^
849849

850850
A literal pattern corresponds to most
@@ -874,7 +874,7 @@ the singletons ``None``, ``True`` and ``False``, the :keyword:`is` operator is u
874874

875875
.. _capture-patterns:
876876

877-
Capture patterns
877+
Capture Patterns
878878
^^^^^^^^^^^^^^^^
879879

880880
A capture pattern binds the subject value to a name.
@@ -899,7 +899,7 @@ In simple terms ``NAME`` will always succeed and it will set ``NAME = <subject>`
899899

900900
.. _wildcard-patterns:
901901

902-
Wildcard patterns
902+
Wildcard Patterns
903903
^^^^^^^^^^^^^^^^^
904904

905905
A wildcard pattern always succeeds (matches anything)
@@ -916,7 +916,7 @@ In simple terms, ``_`` will always succeed.
916916

917917
.. _value-patterns:
918918

919-
Value patterns
919+
Value Patterns
920920
^^^^^^^^^^^^^^
921921

922922
A value pattern represents a named value in Python.
@@ -943,7 +943,7 @@ In simple terms ``NAME1.NAME2`` will succeed only if ``<subject> == NAME1.NAME2`
943943

944944
.. _group-patterns:
945945

946-
Group patterns
946+
Group Patterns
947947
^^^^^^^^^^^^^^
948948

949949
A group pattern allows users to add parentheses around patterns to
@@ -957,7 +957,7 @@ In simple terms ``(P)`` has the same effect as ``P``.
957957

958958
.. _sequence-patterns:
959959

960-
Sequence patterns
960+
Sequence Patterns
961961
^^^^^^^^^^^^^^^^^
962962

963963
A sequence pattern contains several subpatterns to be matched against sequence elements.
@@ -1039,7 +1039,7 @@ happens:
10391039

10401040
.. _mapping-patterns:
10411041

1042-
Mapping patterns
1042+
Mapping Patterns
10431043
^^^^^^^^^^^^^^^^
10441044

10451045
A mapping pattern contains one or more key-value patterns. The syntax is
@@ -1089,7 +1089,7 @@ happens:
10891089

10901090
.. _class-patterns:
10911091

1092-
Class patterns
1092+
Class Patterns
10931093
^^^^^^^^^^^^^^
10941094

10951095
A class pattern represents a class and its positional and keyword arguments

0 commit comments

Comments
 (0)