]> Cypherpunks repositories - gostls13.git/commitdiff
Fix a doc typo.
authorDavid Symonds <dsymonds@golang.org>
Wed, 1 Jul 2009 22:07:20 +0000 (15:07 -0700)
committerDavid Symonds <dsymonds@golang.org>
Wed, 1 Jul 2009 22:07:20 +0000 (15:07 -0700)
R=rsc
APPROVED=rsc
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=30967
CL=30990

doc/effective_go.html

index 1e925528d0aff4353bf42ff417bc118f37b7e846..a4d4ed31dbc69a3133aff6cbe8b40c2e3badb1e8 100644 (file)
@@ -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>