diff options
author | cui fliter <imcusg@gmail.com> | 2023-05-06 00:11:33 +0800 |
---|---|---|
committer | Gopher Robot <gobot@golang.org> | 2023-05-10 12:59:20 +0000 |
commit | 57e3189821c6525fc8eecac42c3faad3b5416223 (patch) | |
tree | 56e615214191c4a8a17fa4b1ed125f20307599f8 /src/net/http/transport_test.go | |
parent | dc0179bfa887aa82ff2cc615d07e52e59e57d204 (diff) | |
download | go-57e3189821c6525fc8eecac42c3faad3b5416223.tar.gz go-57e3189821c6525fc8eecac42c3faad3b5416223.zip |
all: fix a lot of comments
Fix comments, including duplicate is, wrong phrases and articles, misspellings, etc.
Change-Id: I8bfea53b9b275e649757cc4bee6a8a026ed9c7a4
Reviewed-on: https://go-review.googlesource.com/c/go/+/493035
Reviewed-by: Benny Siegert <bsiegert@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: shuang cui <imcusg@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Diffstat (limited to 'src/net/http/transport_test.go')
-rw-r--r-- | src/net/http/transport_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/net/http/transport_test.go b/src/net/http/transport_test.go index f9e8a285c5..fdbc5daa8d 100644 --- a/src/net/http/transport_test.go +++ b/src/net/http/transport_test.go @@ -2353,7 +2353,7 @@ func testTransportResponseHeaderTimeout(t *testing.T, mode testMode) { if err != nil { uerr, ok := err.(*url.Error) if !ok { - t.Errorf("error is not an url.Error; got: %#v", err) + t.Errorf("error is not a url.Error; got: %#v", err) continue } nerr, ok := uerr.Err.(net.Error) @@ -3889,7 +3889,7 @@ func TestTransportCloseIdleConnsThenReturn(t *testing.T) { } // Test for issue 34282 -// Ensure that getConn doesn't call the GotConn trace hook on a HTTP/2 idle conn +// Ensure that getConn doesn't call the GotConn trace hook on an HTTP/2 idle conn func TestTransportTraceGotConnH2IdleConns(t *testing.T) { tr := &Transport{} wantIdle := func(when string, n int) bool { @@ -4952,7 +4952,7 @@ func TestTransportRejectsAlphaPort(t *testing.T) { } } -// Test the httptrace.TLSHandshake{Start,Done} hooks with a https http1 +// Test the httptrace.TLSHandshake{Start,Done} hooks with an https http1 // connections. The http2 test is done in TestTransportEventTrace_h2 func TestTLSHandshakeTrace(t *testing.T) { run(t, testTLSHandshakeTrace, []testMode{https1Mode, http2Mode}) |