]> Cypherpunks repositories - gostls13.git/commitdiff
Automated g4 rollback of changelist 29478.
authorRob Pike <r@golang.org>
Fri, 29 May 2009 22:46:03 +0000 (15:46 -0700)
committerRob Pike <r@golang.org>
Fri, 29 May 2009 22:46:03 +0000 (15:46 -0700)
*** Reason for rollback ***

  these semicolons are necessary only because of a bug in 6g

*** Original change description ***

add missing semicolons in example

TBR=gri
OCL=29624
CL=29624

doc/go_spec.html

index 78be5584b345be8a8d4e28a584f28f19ae2b48f0..48672024bc47cbf7f07ac62a71f11d5ad2aad3d9 100644 (file)
@@ -3270,14 +3270,14 @@ and the variables are initialized once before the statement is entered.
 
 <pre>
 switch tag {
-default: s3();
-case 0, 1, 2, 3: s1();
-case 4, 5, 6, 7: s2();
+default: s3()
+case 0, 1, 2, 3: s1()
+case 4, 5, 6, 7: s2()
 }
 
 switch x := f(); {
-case x &lt; 0: return -x;
-default: return x;
+case x &lt; 0: return -x
+default: return x
 }
 
 switch {          // missing expression means "true"