You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/expressions/if-expr.md
+2-3Lines changed: 2 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -125,7 +125,7 @@ r[expr.if.chains.intro]
125
125
Multiple condition operands can be separated with `&&`.
126
126
127
127
r[expr.if.chains.order]
128
-
Similar to a `&&`[_LazyBooleanOperatorExpression_], each operand is evaluated from left-to-right until an operand evaluates as `false` or a `let` match fails,
128
+
Similar to a `&&`[LazyBooleanExpression], each operand is evaluated from left-to-right until an operand evaluates as `false` or a `let` match fails,
129
129
in which case the subsequent operands are not evaluated.
130
130
131
131
r[expr.if.chains.bindings]
@@ -163,7 +163,7 @@ fn nested() {
163
163
```
164
164
165
165
r[expr.if.chains.or]
166
-
If any condition operand is a `let` pattern, then none of the condition operands can be a `||`[lazy boolean operator expression][_LazyBooleanOperatorExpression_] due to ambiguity and precedence with the `let` scrutinee.
166
+
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.
167
167
If a `||` expression is needed, then parentheses can be used. For example:
0 commit comments