mirror of
https://github.com/golang/go
synced 2024-11-21 20:34:40 -07:00
add missing semicolons in example
R=rsc DELTA=5 (0 added, 0 deleted, 5 changed) OCL=29475 CL=29478
This commit is contained in:
parent
5e53270a6c
commit
c4a74b0b4a
@ -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 < 0: return -x
|
||||
default: return x
|
||||
case x < 0: return -x;
|
||||
default: return x;
|
||||
}
|
||||
|
||||
switch { // missing expression means "true"
|
||||
|
Loading…
Reference in New Issue
Block a user