File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 55>   ;  ;   ;  ; ` ; ` \
66>   ;  ; | [ _ Item_ ] \
77>   ;  ; | [ _ LetStatement_ ] \
8- >   ;  ; | [ _ ExpressionWithoutBlock_ ] [ expression ] ` ; ` \
9- >   ;  ; | [ _ ExpressionWithBlock_ ] [ expression ]
8+ >   ;  ; | [ _ ExpressionStatement_ ]
109
1110
1211A * statement* is a component of a [ block] , which is in turn a component of an
@@ -66,6 +65,11 @@ enclosing block scope.
6665
6766## Expression statements
6867
68+ > ** <sup >Syntax</sup >** \
69+ > _ ExpressionStatement_ :\
70+ >   ;  ;   ;  ; [ _ ExpressionWithoutBlock_ ] [ expression ] ` ; ` \
71+ >   ;  ; | [ _ ExpressionWithBlock_ ] [ expression ]
72+
6973An * expression statement* is one that evaluates an [ expression] and ignores its
7074result. As a rule, an expression statement's purpose is to trigger the effects
7175of evaluating its expression.
@@ -122,6 +126,7 @@ statement are [`cfg`], and [the lint check attributes].
122126[ `cfg` ] : conditional-compilation.html
123127[ the lint check attributes ] : attributes.html#lint-check-attributes
124128[ pattern ] : patterns.html
129+ [ _ExpressionStatement_ ] : #expression-statements
125130[ _Expression_ ] : expressions.html
126131[ _Item_ ] : items.html
127132[ _LetStatement_ ] : #let-statements
You can’t perform that action at this time.
0 commit comments