Skip to content

Commit 09b79c8

Browse files
authored
Update pattern-matching.md
fix broken |
1 parent 7a01829 commit 09b79c8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

assets/content/cookbook/Beginner/pattern-matching.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,7 @@ for (value in 0...10) {
7979

8080
### Or pattern
8181

82-
The `|`
83-
operator can be used anywhere within patterns to describe multiple accepted patterns. If there is a captured variable in an or-pattern, it must appear in both its sub-patterns.
82+
The | operator can be used anywhere within patterns to describe multiple accepted patterns. If there is a captured variable in an or-pattern, it must appear in both its sub-patterns.
8483

8584
Let's go on with the previous example and say that not only 2 and 4 are special, but 6 is too. You can switch on multiple cases like this:
8685

0 commit comments

Comments
 (0)