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