From 98edf09e674b0f02cb32c48de22dcb21ca50df2d Mon Sep 17 00:00:00 2001 From: Matthew Dempsky Date: Thu, 3 Jan 2013 10:06:04 -0800 Subject: [PATCH] net/http: Sync TimeoutHandler godoc with code. 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pkg/net/http/server.go b/src/pkg/net/http/server.go index 89a46f06bb..721be80293 100644 --- a/src/pkg/net/http/server.go +++ b/src/pkg/net/http/server.go @@ -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 -- 2.48.1