From 10b77f7a2bb537cf99ab4476bce7a864da04b2e5 Mon Sep 17 00:00:00 2001 From: Andrew Gerrand Date: Mon, 29 Mar 2010 13:12:08 +1100 Subject: [PATCH] spec: typo in switch sample code, missing semicolon Fixes #697 R=r CC=golang-dev https://golang.org/cl/804042 --- doc/go_spec.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/go_spec.html b/doc/go_spec.html index b35af9b037..003bbdc03a 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -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 }