diff options
| author | cui fliter <imcusg@gmail.com> | 2023-02-14 22:42:38 +0800 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2023-02-14 16:27:39 +0000 |
| commit | 117fe2e08d2fb385e4febed020b834d2d8e4358a (patch) | |
| tree | 835378bc287facdc4a7f938fb4a071f5da0016cb /src/net/http | |
| parent | b146d7626f869901f9dd841b9253e89a227c6465 (diff) | |
| download | go-117fe2e08d2fb385e4febed020b834d2d8e4358a.tar.xz | |
all: fix some comments
Change-Id: I16ec916b47de2f417b681c8abff5a1375ddf491b
Reviewed-on: https://go-review.googlesource.com/c/go/+/468055
Run-TryBot: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Diffstat (limited to 'src/net/http')
| -rw-r--r-- | src/net/http/server.go | 4 | ||||
| -rw-r--r-- | src/net/http/transfer.go | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/net/http/server.go b/src/net/http/server.go index c15f0f58cb..1ac61f7131 100644 --- a/src/net/http/server.go +++ b/src/net/http/server.go @@ -1749,7 +1749,7 @@ type closeWriter interface { var _ closeWriter = (*net.TCPConn)(nil) -// closeWrite flushes any outstanding data and sends a FIN packet (if +// closeWriteAndWait flushes any outstanding data and sends a FIN packet (if // client is connected via TCP), signaling that we're done. We then // pause for a bit, hoping the client processes it before any // subsequent RST. @@ -2990,7 +2990,7 @@ func (srv *Server) ListenAndServe() error { var testHookServerServe func(*Server, net.Listener) // used if non-nil -// shouldDoServeHTTP2 reports whether Server.Serve should configure +// shouldConfigureHTTP2ForServe reports whether Server.Serve should configure // automatic HTTP/2. (which sets up the srv.TLSNextProto map) func (srv *Server) shouldConfigureHTTP2ForServe() bool { if srv.TLSConfig == nil { diff --git a/src/net/http/transfer.go b/src/net/http/transfer.go index 7c7afd7de4..d6f26a709c 100644 --- a/src/net/http/transfer.go +++ b/src/net/http/transfer.go @@ -416,7 +416,7 @@ func (t *transferWriter) doBodyCopy(dst io.Writer, src io.Reader) (n int64, err return } -// unwrapBodyReader unwraps the body's inner reader if it's a +// unwrapBody unwraps the body's inner reader if it's a // nopCloser. This is to ensure that body writes sourced from local // files (*os.File types) are properly optimized. // |
