diff --git a/src/expressions/if-expr.md b/src/expressions/if-expr.md index 26b895dcf2..9fd57fe026 100644 --- a/src/expressions/if-expr.md +++ b/src/expressions/if-expr.md @@ -186,7 +186,7 @@ fn nested() { ``` r[expr.if.chains.or] -If any condition operand is a `let` pattern, then none of the condition operands can be a `||` [lazy boolean operator expression][expr.bool-logic] due to ambiguity and precedence with the `let` scrutinee. If a `||` expression is needed, then parentheses can be used. For example: +If any condition operand is a `let` pattern, then none of the condition operands can be a `||` [lazy boolean operator expression][expr.bool-logic] due to ambiguity and precedence with the `let` scrutinee. If a `||` expression is needed, then parentheses must be used. For example: ```rust # let foo = Some(123); diff --git a/src/expressions/match-expr.md b/src/expressions/match-expr.md index 946ae4c7b4..9b90db1573 100644 --- a/src/expressions/match-expr.md +++ b/src/expressions/match-expr.md @@ -235,7 +235,7 @@ r[expr.match.guard.chains.or] If any guard condition operand is a `let` pattern, then none of the condition operands can be a `||` [lazy boolean operator expression][expr.bool-logic] due to ambiguity and precedence with the `let` scrutinee. > [!EXAMPLE] -> If a `||` expression is needed, then parentheses can be used. For example: +> If a `||` expression is needed, then parentheses must be used. For example: > > ```rust > # let foo = Some([123]);