mirror of https://github.com/golang/go.git
an attempt at simpler yet more correct semicolon rules.
(i'd be happy to drop the paren one as well, reducing it to one case) DELTA=4 (0 added, 3 deleted, 1 changed) OCL=27058 CL=27060
This commit is contained in:
parent
27d1159ab4
commit
736a1aeb81
|
|
@ -3011,10 +3011,7 @@ which may be omitted only if the previous statement:
|
|||
<ul>
|
||||
<li>ends with the closing parenthesis ")" of a list of declarations
|
||||
(§Declarations and Scope); or</li>
|
||||
<li>ends with the closing brace "}" of a type declaration
|
||||
(§Type declarations); or </li>
|
||||
<li>ends with the closing brace "}" of a block
|
||||
(including "switch" and "select" statements).
|
||||
<li>ends with a closing brace "}" that is not part of an expression.
|
||||
</ul>
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue