From: Shenghou Ma Date: Wed, 16 Oct 2013 01:30:49 +0000 (-0400) Subject: doc/effective_go.html: fix code example X-Git-Tag: go1.2rc2~14 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=244014e40212a3790ebdc2b18ee3875262cced51;p=gostls13.git doc/effective_go.html: fix code example Fixes #6595. R=golang-dev, adg CC=golang-dev https://golang.org/cl/14425062 --- diff --git a/doc/effective_go.html b/doc/effective_go.html index 30c015aea1..f9199511a3 100644 --- a/doc/effective_go.html +++ b/doc/effective_go.html @@ -795,6 +795,7 @@ This example shows both uses.
 Loop:
 	for n := 0; n < len(src); n += size {
+		switch {
 		case src[n] < sizeOne:
 			if validateOnly {
 				break