diff --git a/src/pattern-matching/match-guards.md b/src/pattern-matching/match-guards.md index b61e09a9..cead738a 100644 --- a/src/pattern-matching/match-guards.md +++ b/src/pattern-matching/match-guards.md @@ -9,11 +9,10 @@ expression which will be executed if the pattern matches:
-Match guards as a separate syntax feature are important and necessary. They are not -the same as separate `if` expression inside of the match arm. - -An `if` expression inside of the branch block (after `=>`) happens after the match arm -is selected. Failing the `if` condition inside of that block won't result in other arms -of the original `match` expression being considered. - +Key Points: +* Match guards as a separate syntax feature are important and necessary. +* They are not the same as separate `if` expression inside of the match arm. An `if` expression inside of the branch block (after `=>`) happens after the match arm is selected. Failing the `if` condition inside of that block won't result in other arms +of the original `match` expression being considered. +* You can use the variables defined in the pattern in your if expression. +* The condition defined in the guard applies to every expression in a pattern with an `|`.