mirror of
https://github.com/golang/go
synced 2024-11-22 00:54:43 -07:00
spec: typo in switch sample code, missing semicolon
Fixes #697 R=r CC=golang-dev https://golang.org/cl/804042
This commit is contained in:
parent
dc6f8321b1
commit
10b77f7a2b
@ -3754,7 +3754,7 @@ case 0, 1, 2, 3: s1()
|
||||
case 4, 5, 6, 7: s2()
|
||||
}
|
||||
|
||||
switch x := f() { // missing switch expression means "true"
|
||||
switch x := f(); { // missing switch expression means "true"
|
||||
case x < 0: return -x
|
||||
default: return x
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user