Skip to content

Commit d1fb175

Browse files
committed
Reword "must" to "can"
This is to match the original wording and to match the wording in expr.match.guard.chains.or. Parentheses are not necessarily the only way to work around this limitation. For example, you could sometimes use curly braces, or lift parts out to a variable, or don't use chains.
1 parent 81c52e0 commit d1fb175

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/expressions/if-expr.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ r[expr.if.chains.or]
189189
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.
190190

191191
> [!EXAMPLE]
192-
> If a `||` expression is needed, then parentheses must be used. For example:
192+
> If a `||` expression is needed, then parentheses can be used. For example:
193193
>
194194
> ```rust
195195
> # let foo = Some(123);

0 commit comments

Comments
 (0)