File tree Expand file tree Collapse file tree 3 files changed +4
-8
lines changed Expand file tree Collapse file tree 3 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -28,9 +28,6 @@ a following semicolon except if its outer expression is a flow control
2828expression. Furthermore, extra semicolons between statements are allowed, but
2929these semicolons do not affect semantics.
3030
31- > Note: The semicolon following a statement is not a part of the statement
32- > itself. They are invalid when using the ` stmt ` macro matcher.
33-
3431When evaluating a block expression, each statement, except for item declaration
3532statements, is executed sequentially. Then the final expression is executed,
3633if given.
Original file line number Diff line number Diff line change 99>
1010> _ MatchArms_ :\
1111>   ;  ; ( _ MatchArm_ ` => `
12- > ( [ _ BlockExpression _ ] ` , ` < sup >?</ sup >
13- > | [ _ Expression_ ] ` , ` )
12+ > ( [ _ ExpressionWithoutBlock _ ] [ _Expression_ ] ` , `
13+ > | [ _ ExpressionWithBlock _ ] [ _Expression_ ] ` , ` < sup >?</ sup > )
1414> )<sup >\* </sup >\
15- >   ;  ; _ MatchArm_ ` => ` ( [ _ BlockExpression _ ] | [ _ Expression_ ] ) ` , ` <sup >?</sup >
15+ >   ;  ; _ MatchArm_ ` => ` [ _ Expression_ ] ` , ` <sup >?</sup >
1616>
1717> _ MatchArm_ :\
1818>   ;  ; [ _ OuterAttribute_ ] <sup >\* </sup > _ MatchArmPatterns_ _ MatchArmGuard_ <sup >?</sup >
@@ -146,7 +146,6 @@ expression in the same expression contexts as [attributes on block
146146expressions ].
147147
148148[_Expression_ ]: .. / expressions . md
149- [_BlockExpression_ ]: block - expr . md#block - expressions
150149[place expression ]: .. / expressions . md#place - expressions - and - value - expressions
151150[value expression ]: .. / expressions . md#place - expressions - and - value - expressions
152151[_InnerAttribute_ ]: .. / attributes . md
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ from the point of declaration until the end of the enclosing block scope.
6969> ** <sup >Syntax</sup >** \
7070> _ ExpressionStatement_ :\
7171>   ;  ;   ;  ; [ _ ExpressionWithoutBlock_ ] [ expression ] ` ; ` \
72- >   ;  ; | [ _ ExpressionWithBlock_ ] [ expression ]
72+ >   ;  ; | [ _ ExpressionWithBlock_ ] [ expression ] ` ; ` < sup >?</ sup >
7373
7474An * expression statement* is one that evaluates an [ expression] and ignores its
7575result. As a rule, an expression statement's purpose is to trigger the effects
You can’t perform that action at this time.
0 commit comments