Skip to content

Commit 252904b

Browse files
committed
Remove unneeded grammar links
Now that mdbook-spec auto-generates link definitions for grammar names, there's no need to be explicit about these.
1 parent 11cb3c1 commit 252904b

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

src/expressions/if-expr.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ The syntax of an `if` expression is a sequence of one or more condition operands
3535
followed by a consequent block, any number of `else if` conditions and blocks, and an optional trailing `else` block.
3636

3737
r[expr.if.condition]
38-
Condition operands must be either an [_Expression_] with a [boolean type] or a conditional `let` match.
38+
Condition operands must be either an [Expression] with a [boolean type] or a conditional `let` match.
3939

4040
r[expr.if.condition-true]
4141
If all of the condition operands evaluate to `true` and all of the `let` patterns successfully match their [scrutinee]s,
@@ -178,10 +178,6 @@ r[expr.if.edition2024]
178178
> [!EDITION-2024]
179179
> Before the 2024 edition, let chains are not supported. That is, the [LetChain] grammar is not allowed in an `if` expression.
180180
181-
[_BlockExpression_]: block-expr.md
182-
[_Expression_]: ../expressions.md
183-
[_Pattern_]: ../patterns.md
184-
[_Scrutinee_]: match-expr.md
185181
[`match` expressions]: match-expr.md
186182
[boolean type]: ../types/boolean.md
187183
[scrutinee]: ../glossary.md#scrutinee

src/expressions/loop-expr.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ A `while` loop expression allows repeating the evaluation of a block while a set
6060

6161
r[expr.loop.while.syntax]
6262
The syntax of a `while` expression is a sequence of one or more condition operands separated by `&&`,
63-
followed by a [_BlockExpression_].
63+
followed by a [BlockExpression].
6464

6565
r[expr.loop.while.condition]
66-
Condition operands must be either an [_Expression_] with a [boolean type] or a conditional `let` match.
66+
Condition operands must be either an [Expression] with a [boolean type] or a conditional `let` match.
6767
If all of the condition operands evaluate to `true` and all of the `let` patterns successfully match their [scrutinee]s,
6868
then the loop body block executes.
6969

@@ -392,8 +392,6 @@ r[expr.loop.break-value.loop]
392392
In the case a `loop` has an associated `break`, it is not considered diverging, and the `loop` must have a type compatible with each `break` expression.
393393
`break` without an expression is considered identical to `break` with expression `()`.
394394

395-
[_BlockExpression_]: block-expr.md
396-
[_Expression_]: ../expressions.md
397395
[`if` condition chains]: if-expr.md#chains-of-conditions
398396
[`if` expressions]: if-expr.md
399397
[`match` expression]: match-expr.md

0 commit comments

Comments
 (0)