Skip to content

Commit 0e7115d

Browse files
committed
Fixed slight syntax inconsistancies
1 parent c817f3b commit 0e7115d

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/expressions/if-expr.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,14 @@ assert_eq!(y, "Bigger");
4141

4242
> **<sup>Syntax</sup>**\
4343
> _IfLetExpression_ :\
44-
> &nbsp;&nbsp; `if` `let` [_Pattern_] `=` Scrutinee
44+
> &nbsp;&nbsp; `if` `let` [_Pattern_] `=` _Scrutinee_
4545
> [_BlockExpression_]\
4646
> &nbsp;&nbsp; (`else` (
4747
> [_BlockExpression_]
4848
> | _IfExpression_
4949
> | _IfLetExpression_ ) )<sup>\?</sup>
5050
>
51-
> _Scrutinee_:
51+
> _Scrutinee_:\
5252
> &nbsp;&nbsp; [_Expression_]<sub>_except struct or lazy boolean operator expression_</sub>
5353
5454
An `if let` expression is semantically similar to an `if` expression but in place of a condition operand it expects the keyword `let` followed by a pattern, an `=` and a [scrutinee] operand.

src/expressions/loop-expr.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@ while i < 10 {
6262

6363
> **<sup>Syntax</sup>**\
6464
> [_PredicatePatternLoopExpression_] :\
65-
> &nbsp;&nbsp; `while` `let` [_Pattern_] `=` Scrutinee
65+
> &nbsp;&nbsp; `while` `let` [_Pattern_] `=` _Scrutinee_
6666
> [_BlockExpression_]
6767
>
68-
> _Scrutinee_:
68+
> _Scrutinee_:\
6969
> &nbsp;&nbsp; [_Expression_]<sub>_except struct or lazy boolean operator expression_</sub>
7070
7171

src/expressions/match-expr.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
> **<sup>Syntax</sup>**\
44
> _MatchExpression_ :\
5-
> &nbsp;&nbsp; `match` Scrutinee `{`\
5+
> &nbsp;&nbsp; `match` _Scrutinee_ `{`\
66
> &nbsp;&nbsp; &nbsp;&nbsp; [_InnerAttribute_]<sup>\*</sup>\
77
> &nbsp;&nbsp; &nbsp;&nbsp; _MatchArms_<sup>?</sup>\
88
> &nbsp;&nbsp; `}`

0 commit comments

Comments
 (0)