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 5
5
>   ;  ;   ;  ; ` ; ` \
6
6
>   ;  ; | [ _ Item_ ] \
7
7
>   ;  ; | [ _ LetStatement_ ] \
8
- >   ;  ; | [ _ ExpressionWithoutBlock_ ] [ expression ] ` ; ` \
9
- >   ;  ; | [ _ ExpressionWithBlock_ ] [ expression ]
8
+ >   ;  ; | [ _ ExpressionStatement_ ]
10
9
11
10
12
11
A * statement* is a component of a [ block] , which is in turn a component of an
@@ -66,6 +65,11 @@ enclosing block scope.
66
65
67
66
## Expression statements
68
67
68
+ > ** <sup >Syntax</sup >** \
69
+ > _ ExpressionStatement_ :\
70
+ >   ;  ;   ;  ; [ _ ExpressionWithoutBlock_ ] [ expression ] ` ; ` \
71
+ >   ;  ; | [ _ ExpressionWithBlock_ ] [ expression ]
72
+
69
73
An * expression statement* is one that evaluates an [ expression] and ignores its
70
74
result. As a rule, an expression statement's purpose is to trigger the effects
71
75
of evaluating its expression.
@@ -122,6 +126,7 @@ statement are [`cfg`], and [the lint check attributes].
122
126
[ `cfg` ] : conditional-compilation.html
123
127
[ the lint check attributes ] : attributes.html#lint-check-attributes
124
128
[ pattern ] : patterns.html
129
+ [ _ExpressionStatement_ ] : #expression-statements
125
130
[ _Expression_ ] : expressions.html
126
131
[ _Item_ ] : items.html
127
132
[ _LetStatement_ ] : #let-statements
You can’t perform that action at this time.
0 commit comments