diff --git a/doc/effective_go.html b/doc/effective_go.html index 1e925528d0a..a4d4ed31dbc 100644 --- a/doc/effective_go.html +++ b/doc/effective_go.html @@ -360,7 +360,7 @@ out a data structure.

Use parallel assignment to slice a buffer

-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)];
 

Control Flow