]> Cypherpunks repositories - gostls13.git/commitdiff
all: remove duplicate "the" words in comments
authorAbirdcfly <fp544037857@gmail.com>
Thu, 18 Aug 2022 05:18:11 +0000 (13:18 +0800)
committerGopher Robot <gobot@golang.org>
Thu, 18 Aug 2022 13:54:47 +0000 (13:54 +0000)
Following CL 424454, using command

   rg --multiline " the\s{1,}the " *
   rg --multiline " the\s{1,}//\s{1,}the " *

all the words "the" that are repeated in comments are found.

Change-Id: I60b769b98f04c927b4c228e10f37faf190964069
Reviewed-on: https://go-review.googlesource.com/c/go/+/423836
Auto-Submit: Filippo Valsorda <filippo@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
Run-TryBot: Filippo Valsorda <filippo@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Filippo Valsorda <filippo@golang.org>
src/cmd/compile/internal/ssa/schedule.go
src/cmd/internal/obj/ppc64/doc.go
src/cmd/link/internal/ld/outbuf_darwin.go
src/crypto/tls/common.go
src/net/http/httputil/reverseproxy.go

index 2b74c9e42042e9e107421491834bb16e0bbb9c34..7ef04b2c32d3e8a23ca422b4217bfe5694b55562 100644 (file)
@@ -179,7 +179,7 @@ func schedule(f *Func) {
                                        // scored CarryChainTail (and prove w is not a tail).
                                        score[w.ID] = ScoreFlags
                                }
-                               // Verify v has not been scored. If v has not been visited, v may be the
+                               // Verify v has not been scored. If v has not been visited, v may be
                                // the final (tail) operation in a carry chain. If v is not, v will be
                                // rescored above when v's carry-using op is scored. When scoring is done,
                                // only tail operations will retain the CarryChainTail score.
index 48aff3c69f7c39cc07544bb5da9900005b300a4c..28340e425d2747a55bbc2b6666f5b8eb349698da 100644 (file)
@@ -198,7 +198,7 @@ greater than the max then the assembler sets it to the max for that size (31 for
 32 bit values, 63 for 64 bit values). If the shift count is in a register, then
 only the low 5 or 6 bits of the register will be used as the shift count. The
 Go compiler will add appropriate code to compare the shift value to achieve the
-the correct result, and the assembler does not add extra checking.
+correct result, and the assembler does not add extra checking.
 
 Examples:
 
index e372b3724aa9541c06f5a33d0a139aca20f63c1c..9d8cb583e7abad4ebbd289b9e167cce271f71034 100644 (file)
@@ -24,7 +24,7 @@ func (out *OutBuf) fallocate(size uint64) error {
        }
        // F_PEOFPOSMODE allocates from the end of the file, so we want the size difference.
        // Apparently, it uses the end of the allocation, instead of the logical end of the
-       // the file.
+       // file.
        cursize := uint64(stat.Sys().(*syscall.Stat_t).Blocks * 512) // allocated size
        if size <= cursize {
                return nil
index 1861efce66c96df3b93b8ce29104fa212b7e949b..7d686fd088c0fc2452e0ede252eea573c97c32c3 100644 (file)
@@ -725,7 +725,7 @@ type Config struct {
 
        // mutex protects sessionTicketKeys and autoSessionTicketKeys.
        mutex sync.RWMutex
-       // sessionTicketKeys contains zero or more ticket keys. If set, it means the
+       // sessionTicketKeys contains zero or more ticket keys. If set, it means
        // the keys were set with SessionTicketKey or SetSessionTicketKeys. The
        // first key is used for new tickets and any subsequent keys can be used to
        // decrypt old tickets. The slice contents are not protected by the mutex
index 11711e6f9701779350383a2a5cdb737f72150181..9ab7367eb2a9e408e4f92270ec592dc19f21705b 100644 (file)
@@ -112,7 +112,7 @@ type ReverseProxy struct {
        // At most one of Rewrite or Director may be set.
        Rewrite func(*ProxyRequest)
 
-       // Director is a function which modifies the
+       // Director is a function which modifies
        // the request into a new request to be sent
        // using Transport. Its response is then copied
        // back to the original client unmodified.