]> Cypherpunks repositories - gostls13.git/commitdiff
add missing semicolons in example
authorRob Pike <r@golang.org>
Thu, 28 May 2009 01:31:28 +0000 (18:31 -0700)
committerRob Pike <r@golang.org>
Thu, 28 May 2009 01:31:28 +0000 (18:31 -0700)
R=rsc
DELTA=5  (0 added, 0 deleted, 5 changed)
OCL=29475
CL=29478

doc/go_spec.html

index 48672024bc47cbf7f07ac62a71f11d5ad2aad3d9..78be5584b345be8a8d4e28a584f28f19ae2b48f0 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"