]> Cypherpunks.ru repositories - gostls13.git/commitdiff
all: remove duplicate words
authorJohn Bampton <jbampton@gmail.com>
Sat, 13 Mar 2021 11:25:15 +0000 (11:25 +0000)
committerEmmanuel Odeke <emmanuel@orijtech.com>
Sat, 13 Mar 2021 11:56:59 +0000 (11:56 +0000)
Change-Id: Ib0469232a2b69a869e58d5d24990ad74ac96ea56
GitHub-Last-Rev: eb38e049ee1e773392ff3747e1eb2af20dd50dcd
GitHub-Pull-Request: golang/go#44805
Reviewed-on: https://go-review.googlesource.com/c/go/+/299109
Trust: Emmanuel Odeke <emmanuel@orijtech.com>
Run-TryBot: Emmanuel Odeke <emmanuel@orijtech.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
28 files changed:
src/bytes/buffer.go
src/cmd/compile/internal/ssa/func.go
src/cmd/compile/internal/ssa/rewrite.go
src/cmd/compile/internal/ssagen/abi.go
src/cmd/compile/internal/syntax/scanner_test.go
src/cmd/compile/internal/types2/examples/methods.go2
src/cmd/compile/internal/types2/type.go
src/cmd/go/internal/fsys/fsys.go
src/cmd/go/internal/modfetch/cache.go
src/cmd/go/internal/modfetch/sumdb.go
src/cmd/go/internal/modload/query_test.go
src/cmd/go/testdata/script/mod_lazy_new_import.txt
src/cmd/go/testdata/script/test_chatty_parallel_fail.txt
src/cmd/go/testdata/script/test_chatty_parallel_success.txt
src/cmd/internal/obj/sym.go
src/cmd/link/internal/ld/macho_combine_dwarf.go
src/crypto/tls/handshake_client_test.go
src/debug/dwarf/const.go
src/go/types/errorcodes.go
src/go/types/examples/methods.go2
src/go/types/type.go
src/go/types/typexpr.go
src/net/http/h2_bundle.go
src/net/http/server.go
src/runtime/defer_test.go
src/runtime/memmove_ppc64x.s
src/runtime/panic.go
src/runtime/proc.go

index 549b077708f80e3742e79b0e93e29d3432d3c6c7..01764c694e501809da5833ceebfafb38b3f50c5c 100644 (file)
@@ -387,7 +387,7 @@ var errUnreadByte = errors.New("bytes.Buffer: UnreadByte: previous operation was
 
 // UnreadByte unreads the last byte returned by the most recent successful
 // read operation that read at least one byte. If a write has happened since
-// the last read, if the last read returned an error, or if the read read zero
+// the last read, if the last read returned an error, or if the read reads zero
 // bytes, UnreadByte returns an error.
 func (b *Buffer) UnreadByte() error {
        if b.lastRead == opInvalid {
index a36529af037770244e77ca44c8c5b3542e7eebc5..ebbcea598b39ba0077c01733d993dba9e4bbf0c9 100644 (file)
@@ -551,7 +551,7 @@ func (b *Block) NewValue4(pos src.XPos, op Op, t *types.Type, arg0, arg1, arg2,
        return v
 }
 
-// NewValue4I returns a new value in the block with four arguments and and auxint value.
+// NewValue4I returns a new value in the block with four arguments and auxint value.
 func (b *Block) NewValue4I(pos src.XPos, op Op, t *types.Type, auxint int64, arg0, arg1, arg2, arg3 *Value) *Value {
        v := b.Func.newValue(op, t, b, pos)
        v.AuxInt = auxint
index 5c56b2b346ada530a6b0e0d187716466dd253e61..3c222f80bfefb0d7557f5af6dca4d2ad6c2835ff 100644 (file)
@@ -1414,7 +1414,7 @@ func isPPC64WordRotateMask(v64 int64) bool {
        return (v&vp == 0 || vn&vpn == 0) && v != 0
 }
 
-// Compress mask and and shift into single value of the form
+// Compress mask and shift into single value of the form
 // me | mb<<8 | rotate<<16 | nbits<<24 where me and mb can
 // be used to regenerate the input mask.
 func encodePPC64RotateMask(rotate, mask, nbits int64) int64 {
index 7180b3816ceea1daa0f6171ac02b8ad970a1f0f2..e3f3ac637bcfd3b7592773d97f1e30eaf60661b8 100644 (file)
@@ -279,7 +279,7 @@ func makeABIWrapper(f *ir.Func, wrapperABI obj.ABI) {
        // things in registers and pushing them onto the stack prior to
        // the ABI0 call, meaning that they will always need to allocate
        // stack space. If the compiler marks them as NOSPLIT this seems
-       // as though it could lead to situations where the the linker's
+       // as though it could lead to situations where the linker's
        // nosplit-overflow analysis would trigger a link failure. On the
        // other hand if they not tagged NOSPLIT then this could cause
        // problems when building the runtime (since there may be calls to
index 04338629d47a52e7115f299bc4e34b195a1b4f81..fbe7b71163765c3c88c4427ce43bcaaf2319efda 100644 (file)
@@ -547,7 +547,7 @@ func TestNumbers(t *testing.T) {
                                t.Errorf("%q: got error but bad not set", test.src)
                        }
 
-                       // compute lit where where s.lit is not defined
+                       // compute lit where s.lit is not defined
                        var lit string
                        switch s.tok {
                        case _Name, _Literal:
index 52f835f80e48754e7afee41005ff230060c94bcc..7b6b13ddaa16fe04180dc38bf010aa3a09bccde1 100644 (file)
@@ -43,7 +43,7 @@ func (t T1[[ /* ERROR must be an identifier */ ]int]) m2() {}
 func (t T1[int]) m3() { var _ int = 42 /* ERROR cannot convert 42 .* to int */ }
 
 // The names of the type parameters used in a parameterized receiver
-// type don't have to match the type parameter names in the the declaration
+// type don't have to match the type parameter names in the declaration
 // of the type used for the receiver. In our example, even though T1 is
 // declared with type parameter named A, methods using that receiver type
 // are free to use their own name for that type parameter. That is, the
index ae6642a05919a5bee34b091a3eca7328c3e0b75f..e4d6d0432dc6f967e723da3075c254d75a7e0819 100644 (file)
@@ -522,7 +522,7 @@ func (t *Interface) iterate(f func(*Interface) bool, seen map[*Interface]bool) b
 }
 
 // isSatisfiedBy reports whether interface t's type list is satisfied by the type typ.
-// If the the type list is empty (absent), typ trivially satisfies the interface.
+// If the type list is empty (absent), typ trivially satisfies the interface.
 // TODO(gri) This is not a great name. Eventually, we should have a more comprehensive
 //           "implements" predicate.
 func (t *Interface) isSatisfiedBy(typ Type) bool {
index 7b06c3c7f3a0118614d39d25a1f91af65d263966..ae10946fb1a686cec4003363306c519b27375822 100644 (file)
@@ -100,7 +100,7 @@ func Init(wd string) error {
 }
 
 func initFromJSON(overlayJSON OverlayJSON) error {
-       // Canonicalize the paths in in the overlay map.
+       // Canonicalize the paths in the overlay map.
        // Use reverseCanonicalized to check for collisions:
        // no two 'from' paths should canonicalize to the same path.
        overlay = make(map[string]*node)
index 50a2898f2496e24d0c877431c3683dc6af1629bd..d6774e1ce10dd09596ea0d6502168a7b14c276ac 100644 (file)
@@ -144,7 +144,7 @@ func lockVersion(mod module.Version) (unlock func(), err error) {
        return lockedfile.MutexAt(path).Lock()
 }
 
-// SideLock locks a file within the module cache that that previously guarded
+// SideLock locks a file within the module cache that previously guarded
 // edits to files outside the cache, such as go.sum and go.mod files in the
 // user's working directory.
 // If err is nil, the caller MUST eventually call the unlock function.
index 118bb3d2d03c7a052aa2f132ce85db33d8c7f943..f233cba6df1bb7e996735147834e9c40960158f4 100644 (file)
@@ -185,7 +185,7 @@ func (c *dbClient) initBase() {
                }
        })
        if errors.Is(err, fs.ErrNotExist) {
-               // No proxies, or all proxies failed (with 404, 410, or were were allowed
+               // No proxies, or all proxies failed (with 404, 410, or were allowed
                // to fall back), or we reached an explicit "direct" or "off".
                c.base = c.direct
        } else if err != nil {
index 6e39df45a7effa02bc271f3ad07512d186dfad55..a3f2f84505a0f996d48aa6bb91937e63c33ff097 100644 (file)
@@ -106,7 +106,7 @@ var queryTests = []struct {
        {path: queryRepo, query: "v1.9.10-pre2+metadata", vers: "v1.9.10-pre2.0.20190513201126-42abcb6df8ee"},
        {path: queryRepo, query: "ed5ffdaa", vers: "v1.9.10-pre2.0.20191220134614-ed5ffdaa1f5e"},
 
-       // golang.org/issue/29262: The major version for for a module without a suffix
+       // golang.org/issue/29262: The major version for a module without a suffix
        // should be based on the most recent tag (v1 as appropriate, not v0
        // unconditionally).
        {path: queryRepo, query: "42abcb6df8ee", vers: "v1.9.10-pre2.0.20190513201126-42abcb6df8ee"},
index 02935bf236528b4e56efaefef9dd850a3b9fe074..1be61a1561bc03c9a4959c7a82afce9d82842ea6 100644 (file)
@@ -32,7 +32,7 @@ cmp go.mod go.mod.old
 cp lazy.go.new lazy.go
 go list all
 go list -m all
-stdout '^example.com/c v0.1.0' # not v0.2.0 as would be be resolved by 'latest'
+stdout '^example.com/c v0.1.0' # not v0.2.0 as would be resolved by 'latest'
 cmp go.mod go.mod.old
 
 # TODO(#36460):
index 3b2791cb894863c2334f6be2afce771a52801454..f8faa93663d73ede0defebac1baea68ac9e5c1cf 100644 (file)
@@ -22,7 +22,7 @@ import (
        "flag"
 )
 
-// This test ensures the the order of CONT lines in parallel chatty tests.
+// This test ensures the order of CONT lines in parallel chatty tests.
 func TestChattyParallel(t *testing.T) {
        t.Parallel()
 
index 58b5ab726791c9a9396cc3f5dd4f5f890b662217..63034fa3b5f2996649a0728e6609b983a75dc485 100644 (file)
@@ -21,7 +21,7 @@ import (
        "flag"
 )
 
-// This test ensures the the order of CONT lines in parallel chatty tests.
+// This test ensures the order of CONT lines in parallel chatty tests.
 func TestChattyParallel(t *testing.T) {
        t.Parallel()
 
index 4515bdd0d3a20cd8e3e6ee53d1d5b6046f54f5ad..98c7364e2a03915cd97a58e6d4d9e8d7a1d66391 100644 (file)
@@ -57,7 +57,7 @@ func Linknew(arch *LinkArch) *Link {
        return ctxt
 }
 
-// LookupDerived looks up or creates the symbol with name name derived from symbol s.
+// LookupDerived looks up or creates the symbol with name derived from symbol s.
 // The resulting symbol will be static iff s is.
 func (ctxt *Link) LookupDerived(s *LSym, name string) *LSym {
        if s.Static() {
index 77ee8a4d62bde49786dad003f99b4053f31e27c4..ae873ca6faad373206d32f2b2a1fdade9794d439 100644 (file)
@@ -394,7 +394,7 @@ func machoUpdateDwarfHeader(r *loadCmdReader, compressedSects []*macho.Section,
        // We want the DWARF segment to be considered non-loadable, so
        // force vmaddr and vmsize to zero. In addition, set the initial
        // protection to zero so as to make the dynamic loader happy,
-       // since otherwise it may complain that that the vm size and file
+       // since otherwise it may complain that the vm size and file
        // size don't match for the segment. See issues 21647 and 32673
        // for more context. Also useful to refer to the Apple dynamic
        // loader source, specifically ImageLoaderMachO::sniffLoadCommands
index 0e6c5a63702a93ae2d55f434d647591493a2f760..693f9686a790ecd6199f97ad7beebf5d8a98d5bc 100644 (file)
@@ -42,7 +42,7 @@ const (
        // opensslSentinel on the connection.
        opensslSendSentinel
 
-       // opensslKeyUpdate causes OpenSSL to send send a key update message to the
+       // opensslKeyUpdate causes OpenSSL to send a key update message to the
        // client and request one back.
        opensslKeyUpdate
 )
index c60709199b003d9f5296146f0f66b10b23b45f42..c0a74b08bb85874addb64737ad524c7a5ffdd82b 100644 (file)
@@ -427,7 +427,7 @@ const (
        lneSetDiscriminator = 4
 )
 
-// Line table directory directory and file name entry formats.
+// Line table directory and file name entry formats.
 // These are new in DWARF 5.
 const (
        lnctPath           = 0x01
index 1e39aed07d619cc59b5a8dcbe5d6022f95a515de..4d9db18f9c153bbaa313a43a0d7685212b19a84a 100644 (file)
@@ -162,7 +162,7 @@ const (
        _UntypedNil
 
        // _WrongAssignCount occurs when the number of values on the right-hand side
-       // of an assignment or or initialization expression does not match the number
+       // of an assignment or initialization expression does not match the number
        // of variables on the left-hand side.
        //
        // Example:
index c294627837fa74a84aab45cc95c90e26e1675c44..76c6539e1b7e7de019b7031025274eee082be8d7 100644 (file)
@@ -42,7 +42,7 @@ func (t T1[[ /* ERROR must be an identifier */ ]int]) m2() {}
 func (t T1[int]) m3() { var _ int = 42 /* ERROR cannot use 42 .* as int */ }
 
 // The names of the type parameters used in a parameterized receiver
-// type don't have to match the type parameter names in the the declaration
+// type don't have to match the type parameter names in the declaration
 // of the type used for the receiver. In our example, even though T1 is
 // declared with type parameter named A, methods using that receiver type
 // are free to use their own name for that type parameter. That is, the
index 201da95a581367ca75159c57ab6a5199485fdcc2..21d49de3aae6caae0cc9ff14b413727d8551c134 100644 (file)
@@ -519,7 +519,7 @@ func (t *Interface) iterate(f func(*Interface) bool, seen map[*Interface]bool) b
 }
 
 // isSatisfiedBy reports whether interface t's type list is satisfied by the type typ.
-// If the the type list is empty (absent), typ trivially satisfies the interface.
+// If the type list is empty (absent), typ trivially satisfies the interface.
 // TODO(gri) This is not a great name. Eventually, we should have a more comprehensive
 //           "implements" predicate.
 func (t *Interface) isSatisfiedBy(typ Type) bool {
index 63e37de4b71da675ed160ecc23b082f79f33cd30..60a42b0426c360ca714082f41fdc7ef8f686a3a2 100644 (file)
@@ -690,7 +690,7 @@ func (check *Checker) typeList(list []ast.Expr) []Type {
 }
 
 // collectParams declares the parameters of list in scope and returns the corresponding
-// variable list. If type0 != nil, it is used instead of the the first type in list.
+// variable list. If type0 != nil, it is used instead of the first type in list.
 func (check *Checker) collectParams(scope *Scope, list *ast.FieldList, type0 ast.Expr, variadicOk bool) (params []*Var, variadic bool) {
        if list == nil {
                return
index 0379848e708ab9abfa42b13cd4736c6a6b6913b7..feecc8ce9c1c95cb8941a4ba5f809a9858c540a5 100644 (file)
@@ -7297,7 +7297,7 @@ func (cc *http2ClientConn) canTakeNewRequestLocked() bool {
        return st.canTakeNewRequest
 }
 
-// tooIdleLocked reports whether this connection has been been sitting idle
+// tooIdleLocked reports whether this connection has been sitting idle
 // for too much wall time.
 func (cc *http2ClientConn) tooIdleLocked() bool {
        // The Round(0) strips the monontonic clock reading so the
index ad99741177d50d20ad12a3ad8f5615eb8371b42e..ea3486289a3ae5a9852034df3b7808f84a3087aa 100644 (file)
@@ -2638,7 +2638,7 @@ type Server struct {
        // value.
        ConnContext func(ctx context.Context, c net.Conn) context.Context
 
-       inShutdown atomicBool // true when when server is in shutdown
+       inShutdown atomicBool // true when server is in shutdown
 
        disableKeepAlives int32     // accessed atomically.
        nextProtoOnce     sync.Once // guards setupHTTP2_* init
index 9a40ea19842faf029d6a2502c38c15fedddb1f52..fc961445975867b219812a9f6846790a5dc1996c 100644 (file)
@@ -370,7 +370,7 @@ func g2() {
        defer ap.method2()
        defer ap.method1()
        ff1(ap, 1, 2, 3, 4, 5, 6, 7, 8, 9)
-       // Try to get the stack to be be moved by growing it too large, so
+       // Try to get the stack to be moved by growing it too large, so
        // existing stack-allocated defer becomes invalid.
        rec1(2000)
 }
index edc6452bba078c671542e089c019e537bfa0cc6b..dbd835506f6009ed876547262b2b44577263281d 100644 (file)
@@ -157,7 +157,7 @@ backwardlargeloop:
 
 backward32setup:
        MOVD    QWORDS, CTR                     // set up loop ctr
-       MOVD    $16, IDX16                      // 32 bytes at at time
+       MOVD    $16, IDX16                      // 32 bytes at a time
 
 backward32loop:
        SUB     $32, TGT
index e320eaa59666d19f6549745fd823990867be9102..b5133fa5b491dd07540fe2decfbc58156bf0b803 100644 (file)
@@ -699,7 +699,7 @@ func printpanics(p *_panic) {
 // specified by sp. If sp is nil, it uses the sp from the current defer record
 // (which has just been finished). Hence, it continues the stack scan from the
 // frame of the defer that just finished. It skips any frame that already has an
-// open-coded _defer record, which would have been been created from a previous
+// open-coded _defer record, which would have been created from a previous
 // (unrecovered) panic.
 //
 // Note: All entries of the defer chain (including this new open-coded entry) have
index 8db3b767d111de35ff63882035a9a86ff7eb3cd0..9ebfe70883e1c69b53d13a004df56a14bd0da4d7 100644 (file)
@@ -1318,7 +1318,7 @@ func mstart1() {
                throw("bad runtime·mstart")
        }
 
-       // Set up m.g0.sched as a label returning returning to just
+       // Set up m.g0.sched as a label returning to just
        // after the mstart1 call in mstart0 above, for use by goexit0 and mcall.
        // We're never coming back to mstart1 after we call schedule,
        // so other calls can reuse the current frame.