summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Symonds <dsymonds@golang.org>2009-07-01 15:07:20 -0700
committerDavid Symonds <dsymonds@golang.org>2009-07-01 15:07:20 -0700
commit249dc7c0008210ccdd66bbddfde1cdee6a18643f (patch)
treeb1c4f705b0a8ae4518851dbeceaaf811b14389db
parent71130c4dd640c61d7d7e7ef61364cc28da0317cc (diff)
downloadgolang-249dc7c0008210ccdd66bbddfde1cdee6a18643f.tar.gz
Fix a doc typo.
R=rsc APPROVED=rsc DELTA=1 (0 added, 0 deleted, 1 changed) OCL=30967 CL=30990
-rw-r--r--doc/effective_go.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/effective_go.html b/doc/effective_go.html
index 1e925528d..a4d4ed31d 100644
--- a/doc/effective_go.html
+++ b/doc/effective_go.html
@@ -360,7 +360,7 @@ out a data structure.
<h3 id="buffer-slice">Use parallel assignment to slice a buffer</h3>
<pre>
-hdr, body, checksum := buf[0:20], buf[20:len(buf)], buf[len(buf)-4:len(buf)];
+hdr, body, checksum := buf[0:20], buf[20:len(buf)-4], buf[len(buf)-4:len(buf)];
</pre>
<h2 id="control-flow">Control Flow</h2>