]> Cypherpunks repositories - gostls13.git/commitdiff
all: fix spelling
authorJohn Bampton <jbampton@gmail.com>
Tue, 17 May 2022 21:25:43 +0000 (21:25 +0000)
committerGopher Robot <gobot@golang.org>
Tue, 17 May 2022 21:46:33 +0000 (21:46 +0000)
Change-Id: Iee18987c495d1d4bde9da888d454eea8079d3ebc
GitHub-Last-Rev: ff5e01599ddf7deb3ab6ce190ba92eb02ae2cb15
GitHub-Pull-Request: golang/go#52949
Reviewed-on: https://go-review.googlesource.com/c/go/+/406915
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>

28 files changed:
doc/go1.19.html
src/cmd/asm/internal/asm/testdata/arm.s
src/cmd/cgo/out.go
src/cmd/compile/internal/pkginit/initAsanGlobals.go
src/cmd/compile/internal/reflectdata/reflect.go
src/cmd/compile/internal/ssa/cse.go
src/cmd/compile/internal/ssa/gen/ARM.rules
src/cmd/compile/internal/ssa/gen/ARM64.rules
src/cmd/compile/internal/ssa/gen/LOONG64.rules
src/cmd/compile/internal/ssa/gen/MIPS.rules
src/cmd/compile/internal/ssa/gen/MIPS64.rules
src/cmd/compile/internal/ssa/poset.go
src/cmd/compile/internal/ssa/rewrite.go
src/cmd/compile/internal/types2/api_test.go
src/cmd/go/testdata/script/list_load_err.txt
src/cmd/link/internal/ld/data.go
src/crypto/x509/x509_test.go
src/database/sql/fakedb_test.go
src/go/types/api_test.go
src/go/types/methodset_test.go
src/image/gif/writer_test.go
src/net/http/httputil/reverseproxy.go
src/net/http/transport_test.go
src/net/netip/netip.go
src/runtime/mem.go
src/runtime/mgclimit.go
src/runtime/mprof.go
src/runtime/symtab_test.go

index 0c55a7eac2e90231093401b2324312a43b87e5ca..164f967bdd0bae70d8d49a929e074cf21ebddd19 100644 (file)
@@ -144,7 +144,7 @@ Do not send CLs removing the interior tags from such phrases.
       returns an "operation was canceled" error, the error will now
       satisfy <code>errors.Is(err, context.Canceled)</code>.
       These changes are intended to make it easier for code to test
-      for cases in which a context cancelation or timeout causes a net
+      for cases in which a context cancellation or timeout causes a net
       package function or method to return an error, while preserving
       backward compatibility for error messages.
     </p>
index cc8e25ef7c7a5559798a78392259ac813bf1124a..2ba22c71dec17f2c09e5a754ec216ca969184ab0 100644 (file)
@@ -1042,7 +1042,7 @@ jmp_label_3:
        BFI     $29, $2, R8                              // 1881dee7
        BFI     $16, $8, R1, R2 // BFI $16, R1, $8, R2   // 1124d7e7
 
-// synthetic arithmatic
+// synthetic arithmetic
        ADD     $0xffffffaa, R2, R3 // ADD $4294967210, R2, R3   // 55b0e0e30b3082e0
        ADD     $0xffffff55, R5     // ADD $4294967125, R5       // aab0e0e30b5085e0
        ADD.S   $0xffffffab, R2, R3 // ADD.S $4294967211, R2, R3 // 54b0e0e30b3092e0
index a27007ed1d63c3a1de8be2b4131b47ed71cf794b..d6740028da9162ec8d9befaa848d565698e278f7 100644 (file)
@@ -174,7 +174,7 @@ func (p *Package) writeDefs() {
                                // the external linker will add DT_NEEDED
                                // entries as needed on ELF systems.
                                // Treat function variables differently
-                               // to avoid type confict errors from LTO
+                               // to avoid type conflict errors from LTO
                                // (Link Time Optimization).
                                if n.Kind == "fpvar" {
                                        fmt.Fprintf(fm, "extern void %s();\n", n.C)
index 7276791d6e961285a8ea0f5ee0a31e491e06d2e9..63aa361694c5ef814b01aab4eb03778848001e1c 100644 (file)
@@ -86,7 +86,7 @@ func instrumentGlobals(fn *ir.Func) *ir.Name {
                sizeWithRz := rzSize + size
                c = tconv(ir.NewInt(sizeWithRz), types.Types[types.TUINTPTR])
                setField("sizeWithRedzone", c, i)
-               // The C string type is terminated by a null charactor "\0", Go should use three-digit
+               // The C string type is terminated by a null character "\0", Go should use three-digit
                // octal "\000" or two-digit hexadecimal "\x00" to create null terminated string.
                // asanName = symbol's linkname + "\000"
                // globals[i].name = (*defString)(unsafe.Pointer(&asanName)).data
index d9f270871244785a98401c3be3b6389f45005b1d..3ffb7dcefa7059018166aecfaaaa87633bcd65e1 100644 (file)
@@ -356,7 +356,7 @@ func methods(t *types.Type) []*typeSig {
                }
                if f.Nointerface() {
                        // In the case of a nointerface method on an instantiated
-                       // type, don't actually apppend the typeSig.
+                       // type, don't actually append the typeSig.
                        continue
                }
                ms = append(ms, sig)
index f4b799394c0bbd24e4764821fd31a3e389da3721..a71b78ce6527aee8a87f8f32f68520eb862204e7 100644 (file)
@@ -83,7 +83,7 @@ func cse(f *Func) {
        // non-equivalent arguments.  Repeat until we can't find any
        // more splits.
        var splitPoints []int
-       byArgClass := new(partitionByArgClass) // reuseable partitionByArgClass to reduce allocations
+       byArgClass := new(partitionByArgClass) // reusable partitionByArgClass to reduce allocations
        for {
                changed := false
 
index 23f113285bb512e1cc4cbdefdc820b6e7bf8bc08..73284619728ace89269472e4c779f4ce0474bc4c 100644 (file)
 (MOVHUloadidx ptr idx (MOVHstoreidx ptr2 idx x _)) && isSamePtr(ptr, ptr2) => (MOVHUreg x)
 (MOVHloadidx ptr idx (MOVHstoreidx ptr2 idx x _)) && isSamePtr(ptr, ptr2) => (MOVHreg x)
 
-// fold constant into arithmatic ops
+// fold constant into arithmetic ops
 (ADD x (MOVWconst [c])) => (ADDconst [c] x)
 (SUB (MOVWconst [c]) x) => (RSBconst [c] x)
 (SUB x (MOVWconst [c])) => (SUBconst [c] x)
index 07eb4f68e280b2d7d92e5fecfe389377040785bb..3776b3ca026d4ac3a71b8c361c2227fa156af4a4 100644 (file)
 // But for now, this is enough to get rid of lots of them.
 (MOVDnop (MOVDconst [c])) => (MOVDconst [c])
 
-// fold constant into arithmatic ops
+// fold constant into arithmetic ops
 (ADD x (MOVDconst [c])) => (ADDconst [c] x)
 (SUB x (MOVDconst [c])) => (SUBconst [c] x)
 (AND x (MOVDconst [c])) => (ANDconst [c] x)
index e3bbb29efeb429689d099e1832bf1eaf5c57e4af..1ea5effb3cf369d5050cb0de2fec59229fc2e1ee 100644 (file)
 // MOVVnop doesn't emit instruction, only for ensuring the type.
 (MOVVreg x) && x.Uses == 1 => (MOVVnop x)
 
-// fold constant into arithmatic ops
+// fold constant into arithmetic ops
 (ADDV x (MOVVconst [c])) && is32Bit(c) => (ADDVconst [c] x)
 (SUBV x (MOVVconst [c])) && is32Bit(c) => (SUBVconst [c] x)
 (AND x (MOVVconst [c])) && is32Bit(c) => (ANDconst [c] x)
index 639dda4b075492d3d8a499b71fa6616a2cbcb10c..6f696da3cc847237f9792fb9751af98897b458dd 100644 (file)
 // But for now, this is enough to get rid of lots of them.
 (MOVWnop (MOVWconst [c])) => (MOVWconst [c])
 
-// fold constant into arithmatic ops
+// fold constant into arithmetic ops
 (ADD x (MOVWconst [c])) => (ADDconst [c] x)
 (SUB x (MOVWconst [c])) => (SUBconst [c] x)
 (AND x (MOVWconst [c])) => (ANDconst [c] x)
index 292ff2fc7966092fac267f78a39a1d939e221c12..17634afd729d2c45b383380acab337a7ce653d82 100644 (file)
 // But for now, this is enough to get rid of lots of them.
 (MOVVnop (MOVVconst [c])) => (MOVVconst [c])
 
-// fold constant into arithmatic ops
+// fold constant into arithmetic ops
 (ADDV x (MOVVconst [c])) && is32Bit(c) => (ADDVconst [c] x)
 (SUBV x (MOVVconst [c])) && is32Bit(c) => (SUBVconst [c] x)
 (AND x (MOVVconst [c])) && is32Bit(c) => (ANDconst [c] x)
index a3b4f0fea48899e4e94580fc78b52e66045a6289..ad89de3f1357ec068ca373be166a286fbefb6d44 100644 (file)
@@ -450,7 +450,7 @@ func (po *poset) aliasnodes(n1 *Value, i2s bitset) {
                        po.upush(undoSetChr, uint32(idx), r)
                }
 
-               // Connect all chidren of i2s to i1 (unless those children
+               // Connect all children of i2s to i1 (unless those children
                // are in i2s as well, in which case it would be useless)
                if i2s.Test(uint32(idx)) {
                        if l != 0 && !i2s.Test(l.Target()) {
index 58a87c66aa0c24d6349e74e6fe840b5069c26a1c..d41772ad8a0b3cd853bdc383091ca1bd0c50ab1f 100644 (file)
@@ -418,7 +418,7 @@ func isSameCall(sym interface{}, name string) bool {
        return fn != nil && fn.String() == name
 }
 
-// canLoadUnaligned reports if the achitecture supports unaligned load operations
+// canLoadUnaligned reports if the architecture supports unaligned load operations
 func canLoadUnaligned(c *Config) bool {
        return c.ctxt.Arch.Alignment == 1
 }
index 8afead9695aa2a26403b1b08401dfbb6cb632d42..e6de955a6eec963629ad18f4e903315660b32ea8 100644 (file)
@@ -2296,7 +2296,7 @@ func TestInstantiateErrors(t *testing.T) {
                }
 
                if argErr.Index != test.wantAt {
-                       t.Errorf("Instantate(%v, %v): error at index %d, want index %d", T, test.targs, argErr.Index, test.wantAt)
+                       t.Errorf("Instantiate(%v, %v): error at index %d, want index %d", T, test.targs, argErr.Index, test.wantAt)
                }
        }
 }
index 0cfa7fbed2fe437592a18238916b4b4a52fc617d..f1b9205f9904b7898eeb1a35773a10e78d0e2e8f 100644 (file)
@@ -1,6 +1,6 @@
 # go list -e -deps should list imports from any file it can read, even if
 # other files in the same package cause go/build.Import to return an error.
-# Verfifies golang.org/issue/38568
+# Verifies golang.org/issue/38568
 
 go list -e -deps ./scan
 stdout m/want
index 0e16fe5495dc547c7c9f12d7f2aa042a686dc39b..43f71c0400fb13fe527e4e52ab17456e3f465f59 100644 (file)
@@ -938,7 +938,7 @@ func writeBlocks(ctxt *Link, out *OutBuf, sem chan int, ldr *loader.Loader, syms
                length := int64(0)
                if idx+1 < len(syms) {
                        // Find the next top-level symbol.
-                       // Skip over sub symbols so we won't split a containter symbol
+                       // Skip over sub symbols so we won't split a container symbol
                        // into two blocks.
                        next := syms[idx+1]
                        for ldr.AttrSubSymbol(next) {
index 4469a42ce29ea7fb65a7b8ade750e58c4c1a4d63..8ef6115df4c02d144eed9d20abf06d3eded7ae13 100644 (file)
@@ -700,11 +700,11 @@ func TestCreateSelfSignedCertificate(t *testing.T) {
                }
 
                if len(cert.PermittedEmailAddresses) != 1 || cert.PermittedEmailAddresses[0] != "foo@example.com" {
-                       t.Errorf("%s: failed to parse permitted email addreses: %#v", test.name, cert.PermittedEmailAddresses)
+                       t.Errorf("%s: failed to parse permitted email addresses: %#v", test.name, cert.PermittedEmailAddresses)
                }
 
                if len(cert.ExcludedEmailAddresses) != 2 || cert.ExcludedEmailAddresses[0] != ".example.com" || cert.ExcludedEmailAddresses[1] != "example.com" {
-                       t.Errorf("%s: failed to parse excluded email addreses: %#v", test.name, cert.ExcludedEmailAddresses)
+                       t.Errorf("%s: failed to parse excluded email addresses: %#v", test.name, cert.ExcludedEmailAddresses)
                }
 
                if len(cert.PermittedURIDomains) != 2 || cert.PermittedURIDomains[0] != ".bar.com" || cert.PermittedURIDomains[1] != "bar.com" {
index 050aed1ec81460c6b8cb01d63799b9599c70c83d..ec47ce47143835065e08532b40ba4bc973caf5b3 100644 (file)
@@ -643,7 +643,7 @@ func (c *fakeConn) PrepareContext(ctx context.Context, query string) (driver.Stm
        }
 
        if c.stickyBad || (hookPrepareBadConn != nil && hookPrepareBadConn()) {
-               return nil, fakeError{Message: "Preapre: Sticky Bad", Wrapped: driver.ErrBadConn}
+               return nil, fakeError{Message: "Prepare: Sticky Bad", Wrapped: driver.ErrBadConn}
        }
 
        c.touchMem()
index 21a4421726be1fea1d9c6d549007964e325cf9e2..eb17f9280dd26c7bfa4e460c896e39673ccffd54 100644 (file)
@@ -2316,7 +2316,7 @@ func TestInstantiateErrors(t *testing.T) {
                }
 
                if argErr.Index != test.wantAt {
-                       t.Errorf("Instantate(%v, %v): error at index %d, want index %d", T, test.targs, argErr.Index, test.wantAt)
+                       t.Errorf("Instantiate(%v, %v): error at index %d, want index %d", T, test.targs, argErr.Index, test.wantAt)
                }
        }
 }
index ee3ad0dbebf15fc557ec79cac87d951bdde84b24..610329ecb9bfd4d1ff73c9661a0b30e58d850b87 100644 (file)
@@ -40,7 +40,7 @@ func TestNewMethodSet(t *testing.T) {
                "var a T1; type ( T1 T2; T2 interface{ f() } )":              {{"f", []int{0}, true}},
                "var a T1; type ( T1 interface{ T2 }; T2 interface{ f() } )": {{"f", []int{0}, true}},
 
-               // Genric interfaces
+               // Generic interfaces
                "var a T[int]; type T[P any] interface{ f() }":                                     {{"f", []int{0}, true}},
                "var a T1[int]; type ( T1[P any] T2[P]; T2[P any] interface{ f() } )":              {{"f", []int{0}, true}},
                "var a T1[int]; type ( T1[P any] interface{ T2[P] }; T2[P any] interface{ f() } )": {{"f", []int{0}, true}},
index af0105c6bea382015270fde951c184b1c6b6f937..8dd28908d751867f5214481fddb5a5f0003ff7cb 100644 (file)
@@ -603,7 +603,7 @@ func TestEncodeWrappedImage(t *testing.T) {
                t.Fatalf("readImg: %v", err)
        }
 
-       // Case 1: Enocde a wrapped image.Image
+       // Case 1: Encode a wrapped image.Image
        buf := new(bytes.Buffer)
        w0 := offsetImage{m0, m0.Bounds()}
        err = Encode(buf, w0, nil)
@@ -619,7 +619,7 @@ func TestEncodeWrappedImage(t *testing.T) {
                t.Fatalf("Wrapped: average delta is too high. expected: 0, got %d", avgDelta)
        }
 
-       // Case 2: Enocde a wrapped image.Image with offset
+       // Case 2: Encode a wrapped image.Image with offset
        b0 := image.Rectangle{
                Min: image.Point{
                        X: 128,
index 082490faaa4891968e9aab349c5274760c6bda2b..b5d3ce711097b1370a6ff6602041de686a4ab214 100644 (file)
@@ -221,13 +221,13 @@ func (p *ReverseProxy) ServeHTTP(rw http.ResponseWriter, req *http.Request) {
        if ctx.Done() != nil {
                // CloseNotifier predates context.Context, and has been
                // entirely superseded by it. If the request contains
-               // a Context that carries a cancelation signal, don't
+               // a Context that carries a cancellation signal, don't
                // bother spinning up a goroutine to watch the CloseNotify
                // channel (if any).
                //
                // If the request Context has a nil Done channel (which
                // means it is either context.Background, or a custom
-               // Context implementation with no cancelation signal),
+               // Context implementation with no cancellation signal),
                // then consult the CloseNotifier if available.
        } else if cn, ok := rw.(http.CloseNotifier); ok {
                var cancel context.CancelFunc
index acdfae39edc8fa199777389e43694eabdba649a1..84868e2c5e1d01096aa83f0f93f860c71a8c710d 100644 (file)
@@ -6530,7 +6530,7 @@ func TestCancelRequestWhenSharingConnection(t *testing.T) {
        r2c := <-reqc
        cancel()
 
-       // Give the cancelation a moment to take effect, and then unblock the first request.
+       // Give the cancellation a moment to take effect, and then unblock the first request.
        time.Sleep(1 * time.Millisecond)
        close(idlec)
 
index 5bbab951c5ce12c2f8d1cb8cc890969774ea4d03..a88a994068822afff7bbf4a93803bc59c8c91beb 100644 (file)
@@ -474,7 +474,7 @@ func (ip Addr) Is6() bool {
 
 // Unmap returns ip with any IPv4-mapped IPv6 address prefix removed.
 //
-// That is, if ip is an IPv6 address wrapping an IPv4 adddress, it
+// That is, if ip is an IPv6 address wrapping an IPv4 address, it
 // returns the wrapped IPv4 address. Otherwise it returns ip unmodified.
 func (ip Addr) Unmap() Addr {
        if ip.Is4In6() {
index 2f43bdf788c701ac061c9296cbc6ef99a74d5a91..5fdc479f9c1e430cf7c3fe58b747e8b6d99b27d1 100644 (file)
@@ -69,7 +69,7 @@ func sysUnused(v unsafe.Pointer, n uintptr) {
 //
 // This operation is idempotent for memory already in the Prepared state, so
 // it is safe to refer, with v and n, to a range of memory that includes both
-// Prepared and Ready memory. However, the caller must provide the exact amout
+// Prepared and Ready memory. However, the caller must provide the exact amount
 // of Prepared memory for accounting purposes.
 func sysUsed(v unsafe.Pointer, n, prepared uintptr) {
        gcController.mappedReady.Add(int64(prepared))
index 12ff0a7e6803cdcb38f81fff0bd38188e5189292..1ae5c3764c18a0caebd21bf6ab87c8d335259ec8 100644 (file)
@@ -14,7 +14,7 @@ import "runtime/internal/atomic"
 // CPU time and drains with mutator time. Because the bucket fills and
 // drains with time directly (i.e. without any weighting), this effectively
 // sets a very conservative limit of 50%. This limit could be enforced directly,
-// however, but the purpose of the bucket is to accomodate spikes in GC CPU
+// however, but the purpose of the bucket is to accommodate spikes in GC CPU
 // utilization without hurting throughput.
 //
 // Note that the bucket in the leaky bucket mechanism can never go negative,
index 2046e9f2457c3764dfc434c324da0c036ce944bf..6bf3ddda8ce307dbe13401b293c71a6977b06245 100644 (file)
@@ -963,7 +963,7 @@ func goroutineProfileWithLabelsConcurrent(p []StackRecord, labels []unsafe.Point
        // New goroutines may not be in this list, but we didn't want to know about
        // them anyway. If they do appear in this list (via reusing a dead goroutine
        // struct, or racing to launch between the world restarting and us getting
-       // the list), they will aleady have their goroutineProfiled field set to
+       // the list), they will already have their goroutineProfiled field set to
        // goroutineProfileSatisfied before their state transitions out of _Gdead.
        //
        // Any goroutine that the scheduler tries to execute concurrently with this
index 1a0c55af9766e3d2926d9c8a0cb4036bbfb5349f..cf20ea7a0e7896bc6d59f25eb1a81eedadaebab9 100644 (file)
@@ -201,7 +201,7 @@ func tracebackFunc(t *testing.T) uintptr {
 // Go will never generate a stack trace containing such an address, as it is
 // not a valid call site. However, the cgo traceback function passed to
 // runtime.SetCgoTraceback may not be completely accurate and may incorrect
-// provide PCs in Go code or the alignement region between functions.
+// provide PCs in Go code or the alignment region between functions.
 //
 // Go obviously doesn't easily expose the problematic PCs to running programs,
 // so this test is a bit fragile. Some details: