]> Cypherpunks repositories - gostls13.git/commitdiff
all: fix spelling
authorJohn Bampton <jbampton@gmail.com>
Tue, 17 May 2022 23:37:44 +0000 (23:37 +0000)
committerGopher Robot <gobot@golang.org>
Wed, 18 May 2022 00:47:29 +0000 (00:47 +0000)
Change-Id: I63eb42f3ce5ca452279120a5b33518f4ce16be45
GitHub-Last-Rev: a88f2f72bef402344582ae997a4907457002b5df
GitHub-Pull-Request: golang/go#52951
Reviewed-on: https://go-review.googlesource.com/c/go/+/406843
Run-TryBot: Robert Griesemer <gri@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>

14 files changed:
src/cmd/compile/internal/ssa/loopbce.go
src/cmd/compile/internal/typecheck/iimport.go
src/cmd/go/internal/fsys/fsys.go
src/cmd/internal/obj/arm64/asm7.go
src/cmd/internal/obj/s390x/a.out.go
src/io/ioutil/tempfile_test.go
src/os/tempfile_test.go
src/runtime/asm_amd64.s
src/runtime/asm_arm64.s
src/runtime/mgcpacer.go
src/runtime/mspanset.go
src/runtime/sys_windows_arm.s
src/runtime/sys_windows_arm64.s
test/fixedbugs/bug150.go

index dd63541771d3c6845d773cd7a82b0daa7779c134..3181edca2962c002c8929444f084fb63b2f276d0 100644 (file)
@@ -161,7 +161,7 @@ func findIndVar(f *Func) []indVar {
 
                // Up to now we extracted the induction variable (ind),
                // the increment delta (inc), the temporary sum (nxt),
-               // the mininum value (min) and the maximum value (max).
+               // the minimum value (min) and the maximum value (max).
                //
                // We also know that ind has the form (Phi min nxt) where
                // nxt is (Add inc nxt) which means: 1) inc dominates nxt
index 6a29c14e3c76e45a39eeded990dfe5bb816c3c84..3a51f781f0531688b862e21a01dc7caf0d993a83 100644 (file)
@@ -733,7 +733,7 @@ func (p *iimporter) typAt(off uint64) *types.Type {
                }
                t = p.newReader(off-predeclReserved, nil).typ1()
                // Ensure size is calculated for imported types. Since CL 283313, the compiler
-               // does not compile the function immediately when it sees them. Instead, funtions
+               // does not compile the function immediately when it sees them. Instead, functions
                // are pushed to compile queue, then draining from the queue for compiling.
                // During this process, the size calculation is disabled, so it is not safe for
                // calculating size during SSA generation anymore. See issue #44732.
index 9a1bbf890e1191ebb68b19673f7ea647bae9a899..41d0bbfe660101b904367de19a94e154483b02f2 100644 (file)
@@ -295,7 +295,7 @@ func ReadDir(dir string) ([]fs.FileInfo, error) {
                                files[name] = missingFile(name)
                                continue
                        } else if f.IsDir() {
-                               return nil, fmt.Errorf("for overlay of %q to %q: overlay Replace entries can't point to dirctories",
+                               return nil, fmt.Errorf("for overlay of %q to %q: overlay Replace entries can't point to directories",
                                        filepath.Join(dir, name), to.actualFilePath)
                        }
                        // Add a fileinfo for the overlaid file, so that it has
index 9cf1fcd460be9b1d23a5ff318d33025a61fc4fbf..98933464bbd8c79c056fad2aec29b451e5728ab5 100644 (file)
@@ -7412,7 +7412,7 @@ func (c *ctxt7) opextr(p *obj.Prog, a obj.As, v int32, rn int, rm int, rt int) u
        return o
 }
 
-/* genrate instruction encoding for ldp and stp series */
+/* generate instruction encoding for ldp and stp series */
 func (c *ctxt7) opldpstp(p *obj.Prog, o *Optab, vo int32, rbase, rl, rh, ldp uint32) uint32 {
        wback := false
        if o.scond == C_XPOST || o.scond == C_XPRE {
index 2605014e6d4d42a8f4b231184ee3d674860f5c6d..c1bda1fced3e5c9790996a87bee5d223771c39ee 100644 (file)
@@ -204,7 +204,7 @@ const ( // comments from func aclass in asmz.go
        C_DCON     // constant (int64 or uint64)
        C_SACON    // computed address, 16-bit displacement, possibly SP-relative
        C_LACON    // computed address, 32-bit displacement, possibly SP-relative
-       C_DACON    // computed address, 64-bit displacment?
+       C_DACON    // computed address, 64-bit displacement?
        C_SBRA     // short branch
        C_LBRA     // long branch
        C_SAUTO    // short auto
index 5cef18c33b0c1eaebb29ab3a1b2c9fbe0619f2d5..818fcdadf8a87b8e9b1145176d68b11c9138ddd4 100644 (file)
@@ -155,7 +155,7 @@ func TestTempDir_BadDir(t *testing.T) {
        badDir := filepath.Join(dir, "not-exist")
        _, err = TempDir(badDir, "foo")
        if pe, ok := err.(*fs.PathError); !ok || !os.IsNotExist(err) || pe.Path != badDir {
-               t.Errorf("TempDir error = %#v; want PathError for path %q satisifying os.IsNotExist", err, badDir)
+               t.Errorf("TempDir error = %#v; want PathError for path %q satisfying os.IsNotExist", err, badDir)
        }
 }
 
index e71a2444c9748455d92cb310489a42aa8b51d321..e5b74bc21f93c11aa68d1b69654ca88fe9387f9c 100644 (file)
@@ -151,7 +151,7 @@ func TestMkdirTempBadDir(t *testing.T) {
        badDir := filepath.Join(dir, "not-exist")
        _, err = MkdirTemp(badDir, "foo")
        if pe, ok := err.(*fs.PathError); !ok || !IsNotExist(err) || pe.Path != badDir {
-               t.Errorf("TempDir error = %#v; want PathError for path %q satisifying IsNotExist", err, badDir)
+               t.Errorf("TempDir error = %#v; want PathError for path %q satisfying IsNotExist", err, badDir)
        }
 }
 
index 86d6a96d88f88b8450df51e059a3de7d7921c76d..d2f798417898bc91578ecb793b577607539f7d5e 100644 (file)
@@ -1775,7 +1775,7 @@ GLOBL     debugCallFrameTooLarge<>(SB), RODATA, $20       // Size duplicated below
 // 2. Push the current PC on the stack (updating SP).
 // 3. Write the desired argument frame size at SP-16 (using the SP
 //    after step 2).
-// 4. Save all machine registers (including flags and XMM reigsters)
+// 4. Save all machine registers (including flags and XMM registers)
 //    so they can be restored later by the debugger.
 // 5. Set the PC to debugCallV2 and resume execution.
 //
index 8310c2ca10853e3285d02c64966322854b74d2ae..f593b4a78b9106336342b7970156b2daa5690c0d 100644 (file)
@@ -1259,7 +1259,7 @@ GLOBL     debugCallFrameTooLarge<>(SB), RODATA, $20       // Size duplicated below
 // 3. Store the current LR in (SP) (using the SP after step 2).
 // 4. Store the current PC in the LR register.
 // 5. Write the desired argument frame size at SP-16
-// 6. Save all machine registers (including flags and fpsimd reigsters)
+// 6. Save all machine registers (including flags and fpsimd registers)
 //    so they can be restored later by the debugger.
 // 7. Set the PC to debugCallV2 and resume execution.
 //
index 7acedfcded7e2709ba4f57a280c3a87260a3f389..c275c7dbc4664b6c7144bb4c90e60ae215d93b1c 100644 (file)
@@ -1153,7 +1153,7 @@ func (c *gcControllerState) trigger() (uint64, uint64) {
 
        // Below this point, c.heapMarked < goal.
 
-       // heapMarked is our absolute minumum, and it's possible the trigger
+       // heapMarked is our absolute minimum, and it's possible the trigger
        // bound we get from heapGoalinternal is less than that.
        if minTrigger < c.heapMarked {
                minTrigger = c.heapMarked
index 29f14910ccdbb6211321bd3a5cbf925f9648226d..4158495ddde039161f48bc44a13f57b68d684678 100644 (file)
@@ -201,7 +201,7 @@ claimLoop:
 
        // Increase the popped count. If we are the last possible popper
        // in the block (note that bottom need not equal spanSetBlockEntries-1
-       // due to races) then it's our resposibility to free the block.
+       // due to races) then it's our responsibility to free the block.
        //
        // If we increment popped to spanSetBlockEntries, we can be sure that
        // we're the last popper for this block, and it's thus safe to free it.
index e5b1b7e9f358f21e6684e2a4dc468a4729b2fb62..5dc576a260986a543dc0c48ae5dec922dea1b19f 100644 (file)
@@ -319,7 +319,7 @@ TEXT runtime·usleep2(SB),NOSPLIT|NOFRAME,$0-4
 // Runs on OS stack.
 // duration (in -100ns units) is in dt+0(FP).
 // g is valid.
-// TODO: neeeds to be implemented properly.
+// TODO: needs to be implemented properly.
 TEXT runtime·usleep2HighRes(SB),NOSPLIT|NOFRAME,$0-4
        B       runtime·abort(SB)
 
index 7b1514f552b4d52a52aa7e6f0d9bff2a70886ed9..024625f82106687ddc31a584cd213a2c96a73cf7 100644 (file)
@@ -371,7 +371,7 @@ TEXT runtime·usleep2(SB),NOSPLIT,$32-4
 // Runs on OS stack.
 // duration (in -100ns units) is in dt+0(FP).
 // g is valid.
-// TODO: neeeds to be implemented properly.
+// TODO: needs to be implemented properly.
 TEXT runtime·usleep2HighRes(SB),NOSPLIT,$0-4
        B       runtime·abort(SB)
 
index b565ef73dd8b823aea9f48b0c3d56ee875f01ba8..bb4b0d224211d5b3c8e9c14326ef1ce49b43d664 100644 (file)
@@ -19,5 +19,5 @@ func f() (a, b M) {
 }
 
 /*
-bugs/bug150.go:13: reorder2: too many funcation calls evaluating parameters
+bugs/bug150.go:13: reorder2: too many function calls evaluating parameters
 */