Skip to content

Commit c7f7717

Browse files
committed
fix: move definition of or-pattern to glossary and then copy to patterns.rst
1 parent 59e9df0 commit c7f7717

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/glossary.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4720,8 +4720,7 @@ or-pattern
47204720
^^^^^^^^^^
47214721

47224722
:dp:`fls_LnPDQW3bnNUw`
4723-
An :dt:`or pattern` is a :t:`pattern` that matches on one of two or more
4724-
:t:`[pattern-without-alternation]s`.
4723+
An :dt:`or pattern` is a :t:`pattern` that matches on one of two or more :t:`[pattern-without-alternation]s` and or-s two or more :t:`[subpattern]s` using character 0x7C (vertical line).
47254724

47264725
:dp:`fls_urIJ5JNHLhm6`
47274726
See :s:`Pattern`.

src/patterns.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ A :t:`pattern` is a :t:`construct` that matches a :t:`value` which satisfies all
4242
the criteria of the :t:`pattern`.
4343

4444
:dp:`fls_VQMmveZUfNTn`
45-
An :t:`or-pattern` is a :t:`pattern` which or-s two or more :t:`[subpattern]s` using
46-
character 0x7C (vertical line).
45+
An :t:`or pattern` is a :t:`pattern` that matches on one of two or more :t:`[pattern-without-alternation]s` and or-s two or more :t:`[subpattern]s` using character 0x7C (vertical line).
4746

4847
:dp:`fls_mp6i4blzexnu`
4948
A :t:`pattern-without-alternation` is a :t:`pattern` that cannot be alternated.

0 commit comments

Comments
 (0)