]> Cypherpunks repositories - gostls13.git/commitdiff
all: remove repeated "the" from comments
authorIan Davis <nospam@iandavis.com>
Fri, 28 Sep 2018 08:26:20 +0000 (09:26 +0100)
committerDave Cheney <dave@cheney.net>
Fri, 28 Sep 2018 08:46:55 +0000 (08:46 +0000)
A simple grep over the codebase for "the the" which is often
missed by humans.

Change-Id: Ie4b4f07abfc24c73dcd51c8ef1edf4f73514a21c
Reviewed-on: https://go-review.googlesource.com/138335
Reviewed-by: Dave Cheney <dave@cheney.net>
src/cmd/go/internal/modload/query.go
src/crypto/x509/cert_pool.go
src/net/http/transport.go
src/net/http/transport_test.go
src/os/os_unix_test.go

index 3b550f1db7f74d1ee25196c951d12649bf1ef7d5..0921d683f04202e02b2dd62938e4fa48e2165eb7 100644 (file)
@@ -207,7 +207,7 @@ func matchSemverPrefix(p, v string) bool {
 // If multiple modules with revisions matching the query provide the requested
 // package, QueryPackage picks the one with the longest module path.
 //
-// If the path is in the the main module and the query is "latest",
+// If the path is in the main module and the query is "latest",
 // QueryPackage returns Target as the version.
 func QueryPackage(path, query string, allowed func(module.Version) bool) (module.Version, *modfetch.RevInfo, error) {
        if _, ok := dirInModule(path, Target.Path, ModRoot, true); ok {
index 86aba6710daf8f1653bb04438f4b7cde3d0178c8..7cc1dd4eb6f017aad35d9dbd0981e99883be4ac3 100644 (file)
@@ -50,7 +50,7 @@ func (s *CertPool) copy() *CertPool {
 // Any mutations to the returned pool are not written to disk and do
 // not affect any other pool returned by SystemCertPool.
 //
-// New changes in the the system cert pool might not be reflected
+// New changes in the system cert pool might not be reflected
 // in subsequent calls.
 func SystemCertPool() (*CertPool, error) {
        if runtime.GOOS == "windows" {
index b8788654b769a432094150dcc6731f8c1525e4b3..7f8fd505bd9ddd8797e6d22c9558f8162ff4b5a6 100644 (file)
@@ -278,7 +278,7 @@ func (t *Transport) onceSetNextProtoDefaults() {
 
        // If they've already configured http2 with
        // golang.org/x/net/http2 instead of the bundled copy, try to
-       // get at its http2.Transport value (via the the "https"
+       // get at its http2.Transport value (via the "https"
        // altproto map) so we can call CloseIdleConnections on it if
        // requested. (Issue 22891)
        altProto, _ := t.altProto.Load().(map[string]RoundTripper)
index 327b3b4996c902a70b636b9251cd0e951ae39ba2..739fe5f59718adc77324b4f250bf76702b0bf08c 100644 (file)
@@ -4753,7 +4753,7 @@ func TestClientTimeoutKillsConn_BeforeHeaders(t *testing.T) {
                }
        case <-time.After(timeout * 10):
                // If we didn't get into the Handler in 50ms, that probably means
-               // the builder was just slow and the the Get failed in that time
+               // the builder was just slow and the Get failed in that time
                // but never made it to the server. That's fine. We'll usually
                // test the part above on faster machines.
                t.Skip("skipping test on slow builder")
@@ -4764,7 +4764,7 @@ func TestClientTimeoutKillsConn_BeforeHeaders(t *testing.T) {
 // conn is closed so that it's not reused.
 //
 // This is the test variant that has the server send response headers
-// first, and time out during the the write of the response body.
+// first, and time out during the write of the response body.
 func TestClientTimeoutKillsConn_AfterHeaders(t *testing.T) {
        setParallel(t)
        defer afterTest(t)
index 54f121ef4c2d5d41b14bf56172f4d7b53aaedd6c..1077d7861357cb9064b4e013668acc7f890837db 100644 (file)
@@ -234,7 +234,7 @@ func newFileTest(t *testing.T, blocking bool) {
        }
        defer syscall.Close(p[1])
 
-       // Set the the read-side to non-blocking.
+       // Set the read-side to non-blocking.
        if !blocking {
                if err := syscall.SetNonblock(p[0], true); err != nil {
                        syscall.Close(p[0])