Commit ee3e97c7 authored by Rob Pike's avatar Rob Pike

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
parent 2119b367
...@@ -1584,8 +1584,8 @@ But why make <code>Counter</code> a struct? An integer is all that's needed. ...@@ -1584,8 +1584,8 @@ But why make <code>Counter</code> a struct? An integer is all that's needed.
type Counter int type Counter int
func (ctr *Counter) ServeHTTP(c *http.Conn, req *http.Request) { func (ctr *Counter) ServeHTTP(c *http.Conn, req *http.Request) {
ctr++; *ctr++;
fmt.Fprintf(c, "counter = %d\n", ctr); fmt.Fprintf(c, "counter = %d\n", *ctr);
} }
</pre> </pre>
<p> <p>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment