From: Rob Pike Date: Thu, 15 Oct 2009 07:27:26 +0000 (-0700) Subject: forgot to update the body when i changed the receiver type. X-Git-Tag: weekly.2009-11-06~305 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=ee3e97c778fe3f9b8b3c73ffa5695dc10e6499fb;p=gostls13.git forgot to update the body when i changed the receiver type. R=rsc DELTA=2 (0 added, 0 deleted, 2 changed) OCL=35759 CL=35761 --- diff --git a/doc/effective_go.html b/doc/effective_go.html index 7fb605d394..21aa4cf82a 100644 --- a/doc/effective_go.html +++ b/doc/effective_go.html @@ -1584,8 +1584,8 @@ But why make Counter a struct? An integer is all that's needed. type Counter int func (ctr *Counter) ServeHTTP(c *http.Conn, req *http.Request) { - ctr++; - fmt.Fprintf(c, "counter = %d\n", ctr); + *ctr++; + fmt.Fprintf(c, "counter = %d\n", *ctr); }