1
0
mirror of https://github.com/golang/go synced 2024-11-21 17:54:39 -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:
Andrew Gerrand 2010-03-29 13:12:08 +11:00
parent dc6f8321b1
commit 10b77f7a2b

View File

@ -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
}