File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -37,10 +37,9 @@ declaration until the end of the enclosing block scope.
37
37
## Expression statements
38
38
39
39
An _ expression statement_ is one that evaluates an
40
- [ expression] ( expressions.html ) and ignores its result. The type of an
41
- expression statement ` e; ` is always ` () ` , regardless of the type of ` e ` . As a
42
- rule, an expression statement's purpose is to trigger the effects of evaluating
43
- its expression. An expression that consists of only a [ block
40
+ [ expression] ( expressions.html ) and ignores its result. As a rule, an expression
41
+ statement's purpose is to trigger the effects of evaluating its expression.
42
+ An expression that consists of only a [ block
44
43
expression] ( expressions.html#block-expressions ) or control flow expression,
45
44
that doesn't end a block and evaluates to ` () ` can also be used as an
46
45
expression statement by omitting the trailing semicolon.
You can’t perform that action at this time.
0 commit comments