]> Cypherpunks repositories - gostls13.git/commitdiff
http: fix documentation typo
authorScott Lawrence <bytbox@gmail.com>
Sat, 18 Jun 2011 11:53:18 +0000 (21:53 +1000)
committerRob Pike <r@golang.org>
Sat, 18 Jun 2011 11:53:18 +0000 (21:53 +1000)
(Variable is referred to alternately as 'r' and 'req')

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/4648042

src/pkg/http/server.go

index 2f545f7102ae51ad4bd17135f0503dfed0a6f4bf..ac5487fd53ac2641c27fdc011c2c13cf18d07669 100644 (file)
@@ -570,7 +570,7 @@ func (w *response) Hijack() (rwc net.Conn, buf *bufio.ReadWriter, err os.Error)
 // Handler object that calls f.
 type HandlerFunc func(ResponseWriter, *Request)
 
-// ServeHTTP calls f(w, req).
+// ServeHTTP calls f(w, r).
 func (f HandlerFunc) ServeHTTP(w ResponseWriter, r *Request) {
        f(w, r)
 }