]> Cypherpunks repositories - gostls13.git/commitdiff
net/http: Sync TimeoutHandler godoc with code.
authorMatthew Dempsky <mdempsky@google.com>
Thu, 3 Jan 2013 18:06:04 +0000 (10:06 -0800)
committerIan Lance Taylor <iant@golang.org>
Thu, 3 Jan 2013 18:06:04 +0000 (10:06 -0800)
TimeoutHandler was changed from "ns int64" to "dt time.Duration" on
Nov 30, 2011, but the godoc still refers to "ns".

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/7031050

src/pkg/net/http/server.go

index 89a46f06bb2054de05454ba457222e38ae64e41e..721be802934a276a1edad250350e1558b3faae02 100644 (file)
@@ -1327,7 +1327,7 @@ func (srv *Server) ListenAndServeTLS(certFile, keyFile string) error {
 // TimeoutHandler returns a Handler that runs h with the given time limit.
 //
 // The new Handler calls h.ServeHTTP to handle each request, but if a
-// call runs for more than ns nanoseconds, the handler responds with
+// call runs for longer than its time limit, the handler responds with
 // a 503 Service Unavailable error and the given message in its body.
 // (If msg is empty, a suitable default message will be sent.)
 // After such a timeout, writes by h to its ResponseWriter will return