Skip to content

Commit f8660a1

Browse files
committed
Make sure :keyword: role works for case
1 parent 7168e98 commit f8660a1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Doc/reference/compound_stmts.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,6 +590,7 @@ the items are surrounded by parentheses. For example::
590590
statement.
591591

592592
.. _match:
593+
.. _case:
593594

594595
The :keyword:`!match` statement
595596
===============================
@@ -618,7 +619,7 @@ The match statement is used for pattern matching. Syntax:
618619
This section uses single quotes to denote
619620
:ref:`soft keywords <soft-keywords>`.
620621

621-
Pattern matching takes a pattern as input (following ``case``) and a subject
622+
Pattern matching takes a pattern as input (following :keyword:`case`) and a subject
622623
value (following ``match``). The pattern (which may contain subpatterns) is
623624
matched against the subject value. The outcomes are:
624625

0 commit comments

Comments
 (0)