]> Cypherpunks repositories - gostls13.git/commitdiff
all: fix typos
authorJes Cok <xigua67damn@gmail.com>
Tue, 30 Jan 2024 15:19:54 +0000 (15:19 +0000)
committerGopher Robot <gobot@golang.org>
Tue, 30 Jan 2024 20:09:45 +0000 (20:09 +0000)
Found by codespell.

Change-Id: I2ebefbbbc8eacf9bc83051407519fa8fd5e4495f
GitHub-Last-Rev: 9cc550f3dbd7c85194a58fd6858507db3e2962a9
GitHub-Pull-Request: golang/go#65346
Reviewed-on: https://go-review.googlesource.com/c/go/+/559095
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
src/cmd/compile/internal/inline/inlheur/analyze_func_flags.go
src/cmd/compile/internal/test/README
src/cmd/go/internal/work/shell.go
src/cmd/link/internal/arm64/asm.go
src/cmd/link/internal/ld/inittask.go
src/crypto/x509/oid_test.go
src/internal/cpu/cpu_arm64_hwcap.go
src/runtime/arena.go
src/syscall/syscall_aix.go
src/syscall/syscall_windows.go

index b7403a4f8c18665274b62289e0ed31f235412b83..d86fd7d71b969aab742fbb7c939e8108da241e57 100644 (file)
@@ -134,7 +134,7 @@ func branchCombine(p1, p2 pstate) pstate {
 }
 
 // stateForList walks through a list of statements and computes the
-// state/diposition for the entire list as a whole, as well
+// state/disposition for the entire list as a whole, as well
 // as updating disposition of intermediate nodes.
 func (ffa *funcFlagsAnalyzer) stateForList(list ir.Nodes) pstate {
        st := psTop
index 242ff794cb3cdef2e900afc92fa478de3f480d1b..3bf4a57a68f850ea01f0e764da3649d477f5ae81 100644 (file)
@@ -1,4 +1,4 @@
 This directory holds small tests and benchmarks of code
 generated by the compiler.  This code is not for importing,
-and the tests are intended to verify that specific optimzations
+and the tests are intended to verify that specific optimizations
 are applied and correct.
index 6089170007fbf0dc435e802f313c7ef744ec0fe8..60817d9c3b3e9b8c79878e586485b0c76f6f9c21 100644 (file)
@@ -494,7 +494,7 @@ func (sh *Shell) reportCmd(desc, dir string, cmdOut []byte, cmdErr error) error
        }
 
        // Usually desc is already p.Desc(), but if not, signal cmdError.Error to
-       // add a line explicitly metioning the import path.
+       // add a line explicitly mentioning the import path.
        needsPath := importPath != "" && p != nil && desc != p.Desc()
 
        err := &cmdError{desc, out, importPath, needsPath}
index 6645795506abd86cf058ed1d9028a73921a42ba1..7b85bb3e2615f3ab6d359c5d1ab2c486d372d32d 100644 (file)
@@ -1222,7 +1222,7 @@ func gensymlate(ctxt *ld.Link, ldr *loader.Loader) {
        // that relocations can target them with smaller addends.
        // On Windows, we only get 21 bits, again (presumably) signed.
        // Also, on Windows (always) and Darwin (for very large binaries), the external
-       // linker does't support CALL relocations with addend, so we generate "label"
+       // linker doesn't support CALL relocations with addend, so we generate "label"
        // symbols for functions of which we can target the middle (Duff's devices).
        if !ctxt.IsDarwin() && !ctxt.IsWindows() || !ctxt.IsExternal() {
                return
index c4c5beb55ed99e4191888217d11fcd658b673091..ccf90b8b8c505f6c1df0a508c6d2c518c5613951 100644 (file)
@@ -152,7 +152,7 @@ func (ctxt *Link) inittaskSym(rootNames []string, symName string) loader.Sym {
 
        // Figure out the schedule.
        sched := ldr.MakeSymbolBuilder(symName)
-       sched.SetType(sym.SNOPTRDATA) // Could be SRODATA, but see isue 58857.
+       sched.SetType(sym.SNOPTRDATA) // Could be SRODATA, but see issue 58857.
        for !h.empty() {
                // Pick the lexicographically first initializable package.
                s := h.pop(ldr)
index b2be1079c1d623437af2ab71f90608ba16ddd9b5..eb47244a7325205e34c1776e7b8e31478e80bdf3 100644 (file)
@@ -78,7 +78,7 @@ func TestOID(t *testing.T) {
                        if ok {
                                t.Errorf("%v: oid.toASN1OID() unexpected success", v.raw)
                        } else {
-                               t.Errorf("%v: oid.toASN1OID() unexpected fauilure", v.raw)
+                               t.Errorf("%v: oid.toASN1OID() unexpected failure", v.raw)
                        }
                        continue
                }
index 2fabbb6edc3613e855105387ad055df5db1b223c..7f0504ca16ed1b36649dea01f2493677dd142ebd 100644 (file)
@@ -48,13 +48,13 @@ func hwcapInit(os string) {
        if ARM64.HasCPUID {
                midr := getMIDR()
                part_num := uint16((midr >> 4) & 0xfff)
-               implementor := byte((midr >> 24) & 0xff)
+               implementer := byte((midr >> 24) & 0xff)
 
                // d0c - NeoverseN1
                // d40 - NeoverseV1
                // d49 - NeoverseN2
                // d4f - NeoverseV2
-               if implementor == 'A' && (part_num == 0xd0c || part_num == 0xd40 ||
+               if implementer == 'A' && (part_num == 0xd0c || part_num == 0xd40 ||
                        part_num == 0xd49 || part_num == 0xd4f) {
                        ARM64.IsNeoverse = true
                }
index e943817ceeabf7830f3582656b793eeb986fc134..e1fae834d7a9521b908e928c3f161546a216bdef 100644 (file)
@@ -765,7 +765,7 @@ func freeUserArenaChunk(s *mspan, x unsafe.Pointer) {
                throw("invalid user arena span size")
        }
 
-       // Mark the region as free to various santizers immediately instead
+       // Mark the region as free to various sanitizers immediately instead
        // of handling them at sweep time.
        if raceenabled {
                racefree(unsafe.Pointer(s.base()), s.elemsize)
index 30e6887cce5f7831d471bec40001e3fc8c2e9c10..18827e9e8b2d2aa7c470ae861cfa9c87cfc23dc8 100644 (file)
@@ -222,7 +222,7 @@ func Wait4(pid int, wstatus *WaitStatus, options int, rusage *Rusage) (wpid int,
        var status _C_int
        var r _Pid_t
        err = ERESTART
-       // AIX wait4 may return with ERESTART errno, while the processus is still
+       // AIX wait4 may return with ERESTART errno, while the process is still
        // active.
        for err == ERESTART {
                r, err = wait4(_Pid_t(pid), &status, options, rusage)
index d13acc5c441b1af5f13a0356864c11805ac19d93..1f46dec0a823b30a200129712d6a5fcce9026592 100644 (file)
@@ -1261,7 +1261,7 @@ func Fchdir(fd Handle) (err error) {
        if err != nil {
                return err
        }
-       // When using VOLUME_NAME_DOS, the path is always pefixed by "\\?\".
+       // When using VOLUME_NAME_DOS, the path is always prefixed by "\\?\".
        // That prefix tells the Windows APIs to disable all string parsing and to send
        // the string that follows it straight to the file system.
        // Although SetCurrentDirectory and GetCurrentDirectory do support the "\\?\" prefix,