Skip to content

Commit cd1dd4d

Browse files
committed
Fix LazyBooleanExpression links
These links were using the wrong name (_LazyBooleanOperatorExpression_) which doesn't exist.
1 parent a24e6e9 commit cd1dd4d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/expressions/if-expr.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ r[expr.if.chains.intro]
125125
Multiple condition operands can be separated with `&&`.
126126

127127
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,
129129
in which case the subsequent operands are not evaluated.
130130

131131
r[expr.if.chains.bindings]
@@ -163,7 +163,7 @@ fn nested() {
163163
```
164164

165165
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.
167167
If a `||` expression is needed, then parentheses can be used. For example:
168168

169169
```rust
@@ -180,7 +180,6 @@ r[expr.if.edition2024]
180180
181181
[_BlockExpression_]: block-expr.md
182182
[_Expression_]: ../expressions.md
183-
[_LazyBooleanOperatorExpression_]: operator-expr.md#lazy-boolean-operators
184183
[_Pattern_]: ../patterns.md
185184
[_Scrutinee_]: match-expr.md
186185
[`match` expressions]: match-expr.md

0 commit comments

Comments
 (0)