]> Cypherpunks repositories - gostls13.git/commitdiff
an attempt at simpler yet more correct semicolon rules.
authorRob Pike <r@golang.org>
Fri, 3 Apr 2009 06:03:41 +0000 (23:03 -0700)
committerRob Pike <r@golang.org>
Fri, 3 Apr 2009 06:03:41 +0000 (23:03 -0700)
(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

doc/go_spec.html

index 438a76433326ac4f1795a365eb8d0473426729ad..1eb6c7a5880c111efc919edfb2e756334ad2e62b 100644 (file)
@@ -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>