Skip to content

Commit ee177e2

Browse files
committed
Add some missing line breaks to syntax sections
1 parent d962646 commit ee177e2

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

src/expressions/match-expr.md

+14-14
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
# `match` expressions
22

3-
> **<sup>Syntax</sup>**
4-
> _MatchExpression_ :
5-
> &nbsp;&nbsp; `match` [_Expression_]<sub>_except struct expression_</sub> `{`
6-
> &nbsp;&nbsp; &nbsp;&nbsp; [_InnerAttribute_]<sup>\*</sup>
7-
> &nbsp;&nbsp; &nbsp;&nbsp; _MatchArms_<sup>?</sup>
8-
> &nbsp;&nbsp; `}`
3+
> **<sup>Syntax</sup>**
4+
> _MatchExpression_ :
5+
> &nbsp;&nbsp; `match` [_Expression_]<sub>_except struct expression_</sub> `{`
6+
> &nbsp;&nbsp; &nbsp;&nbsp; [_InnerAttribute_]<sup>\*</sup>
7+
> &nbsp;&nbsp; &nbsp;&nbsp; _MatchArms_<sup>?</sup>
8+
> &nbsp;&nbsp; `}`
99
>
10-
> _MatchArms_ :
10+
> _MatchArms_ :
1111
> &nbsp;&nbsp; ( _MatchArm_ `=>`
1212
> ( [_BlockExpression_] `,`<sup>?</sup>
1313
> | [_Expression_] `,` )
14-
> )<sup>\*</sup>
15-
> &nbsp;&nbsp; _MatchArm_ `=>` ( [_BlockExpression_] | [_Expression_] ) `,`<sup>?</sup>
14+
> )<sup>\*</sup>
15+
> &nbsp;&nbsp; _MatchArm_ `=>` ( [_BlockExpression_] | [_Expression_] ) `,`<sup>?</sup>
1616
>
17-
> _MatchArm_ :
18-
> &nbsp;&nbsp; [_OuterAttribute_]<sup>\*</sup> _MatchArmPatterns_ _MatchArmGuard_<sup>?</sup>
17+
> _MatchArm_ :
18+
> &nbsp;&nbsp; [_OuterAttribute_]<sup>\*</sup> _MatchArmPatterns_ _MatchArmGuard_<sup>?</sup>
1919
>
20-
> _MatchArmPatterns_ :
21-
> &nbsp;&nbsp; `|`<sup>?</sup> _Pattern_ ( `|` _Pattern_ )<sup>*</sup>
20+
> _MatchArmPatterns_ :
21+
> &nbsp;&nbsp; `|`<sup>?</sup> _Pattern_ ( `|` _Pattern_ )<sup>*</sup>
2222
>
23-
> _MatchArmGuard_ :
23+
> _MatchArmGuard_ :
2424
> &nbsp;&nbsp; `if` [_Expression_]
2525
2626
A `match` expression branches on a *pattern*. The exact form of matching that

src/tokens.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -486,11 +486,11 @@ The two values of the boolean type are written `true` and `false`.
486486
## Lifetimes and loop labels
487487

488488
> **<sup>Lexer</sup>**
489-
> LIFETIME_TOKEN
489+
> LIFETIME_TOKEN :
490490
> &nbsp;&nbsp; &nbsp;&nbsp; `'` [IDENTIFIER_OR_KEYWORD][identifier]
491491
> &nbsp;&nbsp; | `'_`
492492
>
493-
> LIFETIME_OR_LABEL:
493+
> LIFETIME_OR_LABEL :
494494
> &nbsp;&nbsp; &nbsp;&nbsp; `'` [IDENTIFIER][identifier]
495495
496496
Lifetime parameters and [loop labels] use LIFETIME_OR_LABEL tokens. Any

0 commit comments

Comments
 (0)