]> Cypherpunks repositories - gostls13.git/commitdiff
all: fix spelling
authorJohn Bampton <jbampton@gmail.com>
Tue, 17 May 2022 17:09:28 +0000 (17:09 +0000)
committerGopher Robot <gobot@golang.org>
Tue, 17 May 2022 19:51:29 +0000 (19:51 +0000)
Change-Id: I68538a50c22b02cdb5aa2a889f9440fed7b94c54
GitHub-Last-Rev: aaac9e78340ac482e9cd1b506a035f271c29648c
GitHub-Pull-Request: golang/go#52944
Reviewed-on: https://go-review.googlesource.com/c/go/+/406835
Reviewed-by: Bryan Mills <bcmills@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Bryan Mills <bcmills@google.com>
Auto-Submit: Bryan Mills <bcmills@google.com>

16 files changed:
src/cmd/compile/internal/ppc64/ssa.go
src/cmd/compile/internal/test/reproduciblebuilds_test.go
src/cmd/go/testdata/script/test_fuzz_seed_corpus.txt
src/cmd/go/testdata/script/version.txt
src/cmd/link/internal/ld/outbuf.go
src/cmd/objdump/objdump_test.go
src/cmd/vendor/github.com/ianlancetaylor/demangle/demangle.go
src/compress/flate/huffman_code.go
src/crypto/tls/handshake_server_test.go
src/database/sql/sql_test.go
src/encoding/xml/xml.go
src/runtime/mgcpacer.go
src/runtime/pprof/label.go
src/runtime/race_ppc64le.s
src/runtime/sys_aix_ppc64.s
test/live_uintptrkeepalive.go

index d19201331be26522993064b9c3933f40f0984a51..d3a0ba1d80b92d1bd33ed81151b7ba11c0f29204 100644 (file)
@@ -830,7 +830,7 @@ func ssaGenValue(s *ssagen.State, v *ssa.Value) {
        case ssa.OpPPC64MOVDload, ssa.OpPPC64MOVWload:
 
                // MOVDload and MOVWload are DS form instructions that are restricted to
-               // offsets that are a multiple of 4. If the offset is not a multple of 4,
+               // offsets that are a multiple of 4. If the offset is not a multiple of 4,
                // then the address of the symbol to be loaded is computed (base + offset)
                // and used as the new base register and the offset field in the instruction
                // can be set to zero.
@@ -933,7 +933,7 @@ func ssaGenValue(s *ssagen.State, v *ssa.Value) {
        case ssa.OpPPC64MOVDstore, ssa.OpPPC64MOVDstorezero:
 
                // MOVDstore and MOVDstorezero become DS form instructions that are restricted
-               // to offset values that are a multple of 4. If the offset field is not a
+               // to offset values that are a multiple of 4. If the offset field is not a
                // multiple of 4, then the full address of the store target is computed (base +
                // offset) and used as the new base register and the offset in the instruction
                // is set to 0.
index 0a1a5e9b994fe23e5c877e960dc3146147cd7d64..10913ae32fc3a550a0908b07247779545ee2ae3f 100644 (file)
@@ -68,7 +68,7 @@ func TestIssue38068(t *testing.T) {
        // Compile a small package with and without the concurrent
        // backend, then check to make sure that the resulting archives
        // are identical.  Note: this uses "go tool compile" instead of
-       // "go build" since the latter will generate differnent build IDs
+       // "go build" since the latter will generate different build IDs
        // if it sees different command line flags.
        scenarios := []struct {
                tag     string
index 57c8a8ba659aa7049c46f00985469c3957e72d88..3e3fbade2304f298697dc5d348771120e3a2a4b4 100644 (file)
@@ -9,7 +9,7 @@ env GOCACHE=$WORK/cache
 ! stdout 'Failing input written to testdata[/\\]fuzz[/\\]FuzzWithAdd[/\\]'
 stdout FAIL
 
-# Test that fuzzing a target with a sucess in f.Add and a fuzztime of only
+# Test that fuzzing a target with a success in f.Add and a fuzztime of only
 # 1 does not produce a crash.
 go test -fuzz=FuzzWithGoodAdd -run=FuzzWithGoodAdd -fuzztime=1x
 stdout ok
@@ -73,7 +73,7 @@ go clean -fuzzcache
 ! stdout 'Failing input written to testdata[/\\]fuzz[/\\]FuzzWithAdd[/\\]'
 stdout FAIL
 
-# Test that fuzzing a target (with -run=None set) with a sucess in f.Add and a
+# Test that fuzzing a target (with -run=None set) with a success in f.Add and a
 # fuzztime of only 1 does not produce a crash.
 go test -fuzz=FuzzWithGoodAdd -run=None -fuzztime=1x
 stdout ok
index adca7af7a9de3c7e5c8a5db15e4106b3bf446a06..f7ead395c0cc062ee5afbc218fd6d8ef8fc02c0a 100644 (file)
@@ -2,7 +2,7 @@
 go version
 stdout '^go version'
 
-# Flags without files, or paths to misisng files, should error.
+# Flags without files, or paths to missing files, should error.
 ! go version missing.exe
 ! go version -m
 stderr 'with arguments'
index e078ee442faeba1ae810fe6ee818be7e39315376..54fafcaf9963b5b381b2d802f79f504fa25012fd 100644 (file)
@@ -21,7 +21,7 @@ const outbufMode = 0775
 
 // OutBuf is a buffered file writer.
 //
-// It is simlar to the Writer in cmd/internal/bio with a few small differences.
+// It is similar to the Writer in cmd/internal/bio with a few small differences.
 //
 // First, it tracks the output architecture and uses it to provide
 // endian helpers.
index c51a01fa86e33d28254b4b8661ae9f152c1a5b5b..e984ef279e0c53dcc9aeb833ad491de0b385ced0 100644 (file)
@@ -356,7 +356,7 @@ func TestGoObjOtherVersion(t *testing.T) {
        cmd := exec.Command(exe, obj)
        out, err := cmd.CombinedOutput()
        if err == nil {
-               t.Fatalf("objdump go116.o succeeded unexpectly")
+               t.Fatalf("objdump go116.o succeeded unexpectedly")
        }
        if !strings.Contains(string(out), "go object of a different version") {
                t.Errorf("unexpected error message:\n%s", out)
index 66ac7dde62a553f70519d8cd3141784f5bb1c9d6..af5134deb9f459b6eb3333dcfa12ea4b04e5f9e6 100644 (file)
@@ -1715,7 +1715,7 @@ func (st *state) demangleCastTemplateArgs(tp AST, addSubst bool) AST {
        return tp
 }
 
-// mergeQualifiers merges two qualifer lists into one.
+// mergeQualifiers merges two qualifier lists into one.
 func mergeQualifiers(q1AST, q2AST AST) AST {
        if q1AST == nil {
                return q2AST
index 9b64d15e75c1aa31c709f2ff18def76d102f8adc..a3fe80b44233886d8cdc0cec782ae429bb826f20 100644 (file)
@@ -130,7 +130,7 @@ const maxBitsLimit = 16
 // maxBits is the maximum number of bits that should be used to encode any literal.
 // It must be less than 16.
 //
-// bitCounts retruns an integer slice in which slice[i] indicates the number of literals
+// bitCounts returns an integer slice in which slice[i] indicates the number of literals
 // that should be encoded in i bits.
 func (h *huffmanEncoder) bitCounts(list []literalNode, maxBits int32) []int32 {
        if maxBits >= maxBitsLimit {
index 1f3a174d582e0a8249f871644f9e525d424aa08e..5ff5270a7c16b7ea2ef478f341e3fe4531b87f91 100644 (file)
@@ -345,7 +345,7 @@ func TestTLSPointFormats(t *testing.T) {
                                }
                        } else {
                                if len(serverHello.supportedPoints) != 0 {
-                                       t.Fatalf("unexcpected ec_point_format extension from server: %v", serverHello.supportedPoints)
+                                       t.Fatalf("unexpected ec_point_format extension from server: %v", serverHello.supportedPoints)
                                }
                        }
                })
index a921dd5a849b13d359e59f8af355563beb785af5..41631c735f7b7d6642bd66ab3429ca57f09d5a3a 100644 (file)
@@ -2986,7 +2986,7 @@ func TestConnExpiresFreshOutOfPool(t *testing.T) {
 }
 
 // TestIssue20575 ensures the Rows from query does not block
-// closing a transaction. Ensure Rows is closed while closing a trasaction.
+// closing a transaction. Ensure Rows is closed while closing a transaction.
 func TestIssue20575(t *testing.T) {
        db := newTestDB(t, "people")
        defer closeDB(t, db)
index a7a02f5b571764389b849d8d74d5151f6bc9a47e..4a8c154802235f6e1b711e4583c332d665502162 100644 (file)
@@ -933,7 +933,7 @@ func (d *Decoder) InputOffset() int64 {
        return d.offset
 }
 
-// InputPos retuns the line of the current decoder position and the 1 based
+// InputPos returns the line of the current decoder position and the 1 based
 // input position of the line. The position gives the location of the end of the
 // most recently returned token.
 func (d *Decoder) InputPos() (line, column int) {
index 9fbbe83c6b0d23b944f3f414f4966c5d3153a771..7acedfcded7e2709ba4f57a280c3a87260a3f389 100644 (file)
@@ -1044,7 +1044,7 @@ func (c *gcControllerState) memoryLimitHeapGoal() uint64 {
        //
        // Let's take a step back. In an ideal world, this term would look something like just
        // the heap goal. That is, we "reserve" enough space for the heap to grow to the heap
-       // goal, and subtract out everything else. This is of course impossible; the defintion
+       // goal, and subtract out everything else. This is of course impossible; the definition
        // is circular! However, this impossible definition contains a key insight: the amount
        // we're *going* to use matters just as much as whatever we're currently using.
        //
index b614f1254491e2b1fa3312ea9abb1cf06ac6d031..0c58a7ac47e5a05857be2e0ff5bba0ba3dce6c88 100644 (file)
@@ -37,7 +37,7 @@ func labelValue(ctx context.Context) labelMap {
 // that admits incremental immutable modification more efficiently.
 type labelMap map[string]string
 
-// String statisfies Stringer and returns key, value pairs in a consistent
+// String satisfies Stringer and returns key, value pairs in a consistent
 // order.
 func (l *labelMap) String() string {
        if l == nil {
index a1bf3665ad4e74b847a8fe5779e016a5f17ab11b..ac335b1819d5b737356f00315f61828593d57c41 100644 (file)
@@ -410,7 +410,7 @@ racecallatomic_ignore:
        BL      racecall<>(SB)
        // Call __tsan_go_ignore_sync_end.
        MOVD    $__tsan_go_ignore_sync_end(SB), R8
-       MOVD    g_racectx(g), R3        // goroutine context g should sitll be good?
+       MOVD    g_racectx(g), R3        // goroutine context g should still be good?
        BL      racecall<>(SB)
        RET
 
index 772f357ca93619d56cbc1ec021636830ccc0963b..ab18c5eb00bcc6db594d9ef11d39efef5af15f18 100644 (file)
@@ -22,7 +22,7 @@ TEXT callCfunction<>(SB),     NOSPLIT|NOFRAME,$0
 
 
 // asmsyscall6 calls a library function with a function descriptor
-// stored in libcall_fn and store the results in libcall struture
+// stored in libcall_fn and store the results in libcall structure
 // Up to 6 arguments can be passed to this C function
 // Called by runtime.asmcgocall
 // It reserves a stack of 288 bytes for the C function. It must
index 10c4c7505b49f20f02badbf0bb2a66106451a3ef..e39e31f77faf934f022c987828cb2b61f35872c7 100644 (file)
@@ -12,7 +12,7 @@
 // bodies (assembly, linkname), as well as explicitly on complete functions
 // with //go:uintptrkeepalive.
 //
-// This is most important for syscall.Syscall (and similiar functions), so we
+// This is most important for syscall.Syscall (and similar functions), so we
 // test it explicitly.
 
 package p