1
0
mirror of https://github.com/golang/go synced 2024-11-25 14:57:57 -07:00

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:
Rob Pike 2009-04-02 23:03:41 -07:00
parent 27d1159ab4
commit 736a1aeb81

View File

@ -3011,10 +3011,7 @@ which may be omitted only if the previous statement:
<ul> <ul>
<li>ends with the closing parenthesis ")" of a list of declarations <li>ends with the closing parenthesis ")" of a list of declarations
(§Declarations and Scope); or</li> (§Declarations and Scope); or</li>
<li>ends with the closing brace "}" of a type declaration <li>ends with a closing brace "}" that is not part of an expression.
(§Type declarations); or </li>
<li>ends with the closing brace "}" of a block
(including "switch" and "select" statements).
</ul> </ul>