]> Cypherpunks repositories - gostls13.git/commitdiff
all: fix typos detected by github.com/client9/misspell
authorKazuhiro Sera <seratch@gmail.com>
Thu, 23 Aug 2018 05:06:47 +0000 (05:06 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 23 Aug 2018 15:54:07 +0000 (15:54 +0000)
Change-Id: Iadb3c5de8ae9ea45855013997ed70f7929a88661
GitHub-Last-Rev: ae85bcf82be8fee533e2b9901c6133921382c70a
GitHub-Pull-Request: golang/go#26920
Reviewed-on: https://go-review.googlesource.com/128955
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>

22 files changed:
misc/cgo/test/issue9400_linux.go
misc/cgo/testshared/shared_test.go
src/bytes/buffer_test.go
src/cmd/asm/internal/asm/operand_test.go
src/cmd/asm/internal/asm/testdata/amd64enc_extra.s
src/cmd/compile/internal/gc/ssa.go
src/cmd/compile/internal/ssa/deadstore.go
src/cmd/go/internal/cache/default_unix_test.go
src/cmd/go/internal/modload/load.go
src/cmd/go/internal/work/exec.go
src/cmd/trace/annotations.go
src/crypto/aes/gcm_arm64.s
src/crypto/x509/verify.go
src/internal/bytealg/index_arm64.s
src/internal/trace/goroutines.go
src/os/user/user.go
src/runtime/asm_amd64.s
src/runtime/sys_windows_amd64.s
src/time/time.go
test/fixedbugs/issue22662b.go
test/live.go
test/run.go

index 34eb4983a4161c9a708a8a0fb2b12591f29af50f..7719535d251fa385b0d2105560789358ec205bbc 100644 (file)
@@ -41,7 +41,7 @@ func test9400(t *testing.T) {
 
        // Grow the stack and put down a test pattern
        const pattern = 0x123456789abcdef
-       var big [1024]uint64 // len must match assmebly
+       var big [1024]uint64 // len must match assembly
        for i := range big {
                big[i] = pattern
        }
index 846a27173e3112f48f3126c8e6a8e03849f9cf3b..529a2c692f8e5379938d69691a65059f365d4282 100644 (file)
@@ -560,7 +560,7 @@ func TestNotes(t *testing.T) {
                        abiHashNoteFound = true
                case 3: // ELF_NOTE_GODEPS_TAG
                        if depsNoteFound {
-                               t.Error("multiple depedency list notes")
+                               t.Error("multiple dependency list notes")
                        }
                        testDepsNote(t, f, note)
                        depsNoteFound = true
index acbe5ca0c49e2127b2f6abdca414d67f607094bf..6e9d6952a51a588f8627a6bd4fbba291040dc98d 100644 (file)
@@ -293,7 +293,7 @@ func TestReadFromPanicReader(t *testing.T) {
        }
        check(t, "TestReadFromPanicReader (1)", &buf, "")
 
-       // Confirm that when Reader panics, the emtpy buffer remains empty
+       // Confirm that when Reader panics, the empty buffer remains empty
        var buf2 Buffer
        defer func() {
                recover()
index 1d1cf510cb77dc75e27a5e59a3550c4c1ca0ade6..df60b71ebd53d35fd23669fda3babb4bb9264bc0 100644 (file)
@@ -33,7 +33,7 @@ func newParser(goarch string) *Parser {
 
 // tryParse executes parse func in panicOnError=true context.
 // parse is expected to call any parsing methods that may panic.
-// Returns error gathered from recover; nil if no parse errors occured.
+// Returns error gathered from recover; nil if no parse errors occurred.
 //
 // For unexpected panics, calls t.Fatal.
 func tryParse(t *testing.T, parse func()) (err error) {
index afd1dfd313705047237af3bf521b1cee9b44c204..2f0d9ecf8695fb74dfd9ce2223628ba104066506 100644 (file)
@@ -911,7 +911,7 @@ TEXT asmtest(SB),DUPOK|NOSPLIT,$0
        VADDPD.BCST.Z (AX), Z2, K1, Z1 // 62f1edd95808
        VMAXPD.BCST (AX), Z2, K1, Z1   // 62f1ed595f08
        VMAXPD.BCST.Z (AX), Z2, K1, Z1 // 62f1edd95f08
-       // EVEX: surpress all exceptions (SAE).
+       // EVEX: suppress all exceptions (SAE).
        VMAXPD.SAE   Z3, Z2, K1, Z1   // 62f1ed595fcb or 62f1ed195fcb
        VMAXPD.SAE.Z Z3, Z2, K1, Z1   // 62f1edd95fcb or 62f1ed995fcb
        VMAXPD (AX), Z2, K1, Z1       // 62f1ed495f08
index bbd2a668a597925c581ee3e26d62d6c342978a0c..7292963799523edb7080edb25a248f79d88014a2 100644 (file)
@@ -5710,7 +5710,7 @@ func (n *Node) StorageClass() ssa.StorageClass {
        case PAUTO:
                return ssa.ClassAuto
        default:
-               Fatalf("untranslateable storage class for %v: %s", n, n.Class())
+               Fatalf("untranslatable storage class for %v: %s", n, n.Class())
                return 0
        }
 }
index ca6bce972e27813137e0d79f468557cdecce2d70..1caa61a96600a78f5428e28e1e3c81e3b7c16ae0 100644 (file)
@@ -133,7 +133,7 @@ func dse(f *Func) {
        }
 }
 
-// elimDeadAutosGeneric deletes autos that are never accessed. To acheive this
+// elimDeadAutosGeneric deletes autos that are never accessed. To achieve this
 // we track the operations that the address of each auto reaches and if it only
 // reaches stores then we delete all the stores. The other operations will then
 // be eliminated by the dead code elimination pass.
index a207497a42cc01ef162d7d56dc2fcf3a135b646d..1458201f4b32a7421f41351a0c4ccadbfca1092d 100644 (file)
@@ -62,6 +62,6 @@ func TestDefaultDir(t *testing.T) {
        os.Setenv("HOME", "/")
        if _, showWarnings := defaultDir(); showWarnings {
                // https://golang.org/issue/26280
-               t.Error("Cache initalization warnings should be squelched when $GOCACHE and $XDG_CACHE_HOME are unset and $HOME is /")
+               t.Error("Cache initialization warnings should be squelched when $GOCACHE and $XDG_CACHE_HOME are unset and $HOME is /")
        }
 }
index e6340b8bfdcd683c66e84f2313b91177230a84c7..6c1525da9a4d252c00b049df99935382a1a8ad2e 100644 (file)
@@ -758,7 +758,7 @@ func (pkg *loadPkg) stackText() string {
 }
 
 // why returns the text to use in "go mod why" output about the given package.
-// It is less ornate than the stackText but conatins the same information.
+// It is less ornate than the stackText but contains the same information.
 func (pkg *loadPkg) why() string {
        var buf strings.Builder
        var stack []*loadPkg
index 42fa0e64ac0072cb23a8a4a2f8d5a3b92e5b5b65..2822787e63d12f59be61178e1d1176f402b119bd 100644 (file)
@@ -2858,7 +2858,7 @@ func useResponseFile(path string, argLen int) bool {
        }
 
        // On the Go build system, use response files about 10% of the
-       // time, just to excercise this codepath.
+       // time, just to exercise this codepath.
        isBuilder := os.Getenv("GO_BUILDER_NAME") != ""
        if isBuilder && rand.Intn(10) == 0 {
                return true
index 96c109e0f251a007096413ceaede53dc3886ad7d..8071ac887967a65d8616612b961f4c7366bc4647 100644 (file)
@@ -439,6 +439,7 @@ func (task *taskDesc) complete() bool {
 }
 
 // descendents returns all the task nodes in the subtree rooted from this task.
+// TODO: the method name is misspelled
 func (task *taskDesc) decendents() []*taskDesc {
        if task == nil {
                return nil
index 98e9f5bbe59dc518aa61c99d1e82cd4cd169a6db..61c868cd0ca7992b33e1596d2974140f0bccf618 100644 (file)
@@ -434,7 +434,7 @@ TEXT ·gcmAesEnc(SB),NOSPLIT,$0
        VLD1    (tPtr), [ACC0.B16]
        VEOR    ACC1.B16, ACC1.B16, ACC1.B16
        VEOR    ACCM.B16, ACCM.B16, ACCM.B16
-       // Prepare intial counter, and the increment vector
+       // Prepare initial counter, and the increment vector
        VLD1    (ctrPtr), [CTR.B16]
        VEOR    INC.B16, INC.B16, INC.B16
        MOVD    $1, H0
@@ -733,7 +733,7 @@ TEXT ·gcmAesDec(SB),NOSPLIT,$0
        VLD1    (tPtr), [ACC0.B16]
        VEOR    ACC1.B16, ACC1.B16, ACC1.B16
        VEOR    ACCM.B16, ACCM.B16, ACCM.B16
-       // Prepare intial counter, and the increment vector
+       // Prepare initial counter, and the increment vector
        VLD1    (ctrPtr), [CTR.B16]
        VEOR    INC.B16, INC.B16, INC.B16
        MOVD    $1, H0
@@ -969,7 +969,7 @@ tail:
 tailLast:
        VEOR    KLAST.B16, B0.B16, B0.B16
 
-       // Assuming it is safe to load past dstPtr due to the presense of the tag
+       // Assuming it is safe to load past dstPtr due to the presence of the tag
        VLD1    (srcPtr), [B5.B16]
 
        VEOR    B5.B16, B0.B16, B0.B16
index 210db4c1d0eb301b36c0f14cb3be4b9a03aa6cee..4c2ff7b7c4d3d24bcee61f9cf72d5698e864048b 100644 (file)
@@ -861,7 +861,7 @@ nextIntermediate:
 }
 
 // validHostname returns whether host is a valid hostname that can be matched or
-// matched against according to RFC 6125 2.2, with some leniency to accomodate
+// matched against according to RFC 6125 2.2, with some leniency to accommodate
 // legacy values.
 func validHostname(host string) bool {
        host = strings.TrimSuffix(host, ".")
index 20d68ba9b8bf89fffab6a5624027540643e27de3..3a551a72da13932257ee95528f6e83690947801c 100644 (file)
@@ -32,7 +32,7 @@ TEXT indexbody<>(SB),NOSPLIT,$0-56
        // to avoid repeatedly re-load it again and again
        // for sebsequent substring comparisons
        SUB     R3, R1, R4
-       // R4 contains the start of last substring for comparsion
+       // R4 contains the start of last substring for comparison
        ADD     R0, R4, R4
        ADD     $1, R0, R8
 
index 2d7d3aa3ae250833ee905d6c54bdc3b774116b50..a5fda489bea7980610bd7e9d52e31dc5eab645df 100644 (file)
@@ -37,7 +37,7 @@ type UserRegionDesc struct {
 
        // Region end event. Normally EvUserRegion end event or nil,
        // but can be EvGoStop or EvGoEnd event if the goroutine
-       // terminated without explicitely ending the region.
+       // terminated without explicitly ending the region.
        End *Event
 
        GExecutionStat
index 1f733b80235a5489ff1667dd26ea2d6bba1aaff6..c1b8101c8629cb889efa0ca9208b3fae647cf853 100644 (file)
@@ -11,7 +11,7 @@ parses /etc/passwd and /etc/group. The other is cgo-based and relies on
 the standard C library (libc) routines such as getpwuid_r and getgrnam_r.
 
 When cgo is available, cgo-based (libc-backed) code is used by default.
-This can be overriden by using osusergo build tag, which enforces
+This can be overridden by using osusergo build tag, which enforces
 the pure Go implementation.
 */
 package user
index 6c65674b3b0aad39d9a2dff877328447422a71a1..2a15910aea15f5b8a0e7dcba2ac89c5ec7113624 100644 (file)
@@ -1472,7 +1472,7 @@ GLOBL     debugCallFrameTooLarge<>(SB), RODATA, $0x14     // Size duplicated below
 // This function communicates back to the debugger by setting RAX and
 // invoking INT3 to raise a breakpoint signal. See the comments in the
 // implementation for the protocol the debugger is expected to
-// follow. InjectDebugCall in the runtime tests demonstates this protocol.
+// follow. InjectDebugCall in the runtime tests demonstrates this protocol.
 //
 // The debugger must ensure that any pointers passed to the function
 // obey escape analysis requirements. Specifically, it must not pass
index c1449dba6006d008a8ee436dc14a13291346eaba..c9127ac2d2322359a06ad85c0b339bb4857fd3d3 100644 (file)
@@ -363,7 +363,7 @@ TEXT runtime·tstart_stdcall(SB),NOSPLIT,$0
        // Layout new m scheduler stack on os stack.
        MOVQ    SP, AX
        MOVQ    AX, (g_stack+stack_hi)(DX)
-       SUBQ    $(64*1024), AX          // inital stack size (adjusted later)
+       SUBQ    $(64*1024), AX          // initial stack size (adjusted later)
        MOVQ    AX, (g_stack+stack_lo)(DX)
        ADDQ    $const__StackGuard, AX
        MOVQ    AX, g_stackguard0(DX)
index 5350d2e98b2b2520207671274a07c58b4a8115fd..f2da32dbadc8fc5a572e7462293c0757f94d1c48 100644 (file)
@@ -1076,7 +1076,7 @@ func (t Time) Local() Time {
        return t
 }
 
-// In returns a copy of t representating the same time instant, but
+// In returns a copy of t representing the same time instant, but
 // with the copy's location information set to loc for display
 // purposes.
 //
index 3594c0f4ef751fd13cd559da5c5f9c0e8ef42671..2678383ab07750742e4e30271de159d04831e3ae 100644 (file)
@@ -18,7 +18,7 @@ import (
 )
 
 // Each of these tests is expected to fail (missing package clause)
-// at the position determined by the preceeding line directive.
+// at the position determined by the preceding line directive.
 var tests = []struct {
        src, pos string
 }{
index 18611f5113d634bfc79805931770015d944bc62f..13bdc4aae1d248a1dbdc845739e5c971d69350fe 100644 (file)
@@ -465,7 +465,7 @@ func f29(b bool) {
 // copy of array of pointers should die at end of range loop
 var pstructarr [10]pstruct
 
-// Struct size choosen to make pointer to element in pstructarr
+// Struct size chosen to make pointer to element in pstructarr
 // not computable by strength reduction.
 type pstruct struct {
        intp *int
index 99ef79feb180c86d482f4d6cf731eb069ffd15f6..82508d1c1fa536271b90de98eefda455b5f7a3df 100644 (file)
@@ -435,7 +435,7 @@ func (ctxt *context) match(name string) bool {
 func init() { checkShouldTest() }
 
 // goGcflags returns the -gcflags argument to use with go build / go run.
-// This must match the flags used for building the standard libary,
+// This must match the flags used for building the standard library,
 // or else the commands will rebuild any needed packages (like runtime)
 // over and over.
 func goGcflags() string {