mirror of https://github.com/golang/go.git
doc/effective_go.html: fix code example
Fixes #6595. R=golang-dev, adg CC=golang-dev https://golang.org/cl/14425062
This commit is contained in:
parent
5feb15508e
commit
244014e402
|
|
@ -795,6 +795,7 @@ This example shows both uses.
|
|||
<pre>
|
||||
Loop:
|
||||
for n := 0; n < len(src); n += size {
|
||||
switch {
|
||||
case src[n] < sizeOne:
|
||||
if validateOnly {
|
||||
break
|
||||
|
|
|
|||
Loading…
Reference in New Issue