From 09b79c84a49e32a977b16b365e88a03c7f98bde3 Mon Sep 17 00:00:00 2001 From: Mark Knol Date: Fri, 20 Sep 2024 10:42:18 +0200 Subject: [PATCH] Update pattern-matching.md fix broken | --- assets/content/cookbook/Beginner/pattern-matching.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/assets/content/cookbook/Beginner/pattern-matching.md b/assets/content/cookbook/Beginner/pattern-matching.md index d0ca452f3..1350a6bbe 100644 --- a/assets/content/cookbook/Beginner/pattern-matching.md +++ b/assets/content/cookbook/Beginner/pattern-matching.md @@ -79,8 +79,7 @@ for (value in 0...10) { ### Or pattern -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. +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. 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: