diff --git a/src/cmd/internal/objabi/reloctype.go b/src/cmd/internal/objabi/reloctype.go index 2fbd19e20c82c5..043c2be41e5228 100644 --- a/src/cmd/internal/objabi/reloctype.go +++ b/src/cmd/internal/objabi/reloctype.go @@ -496,7 +496,7 @@ func FuncCountToDwTxtAddrFlavor(fncount int) (RelocType, int) { // // Background/motivation: let's say we have a package P with some // assembly functions (in "a.s") and some Go functions (in -// "b.go"). The compilation sequence used by the Go commmand will be: +// "b.go"). The compilation sequence used by the Go command will be: // // 1. run the assembler on a.s to generate a "symabis" file // 2. run the compiler on b.go passing it the symabis file and generating a "go_defs.h" asm header diff --git a/src/cmd/link/internal/ld/dwarf.go b/src/cmd/link/internal/ld/dwarf.go index c4d12a5488df3c..1236a662d3e766 100644 --- a/src/cmd/link/internal/ld/dwarf.go +++ b/src/cmd/link/internal/ld/dwarf.go @@ -1120,7 +1120,7 @@ func expandFile(fname string) string { // are emitted to the directory table first, then the file table is // emitted after that. // -// Note that there are some differences betwen DWARF versions 4 and 5 +// Note that there are some differences between DWARF versions 4 and 5 // regarding how files and directories are handled; the chief item is // that in version 4 we have an implicit directory index 0 that holds // the compilation dir, and an implicit file index 0 that holds the diff --git a/src/cmd/link/internal/ld/dwarf_test.go b/src/cmd/link/internal/ld/dwarf_test.go index cc493f2c699814..761edd30728fc7 100644 --- a/src/cmd/link/internal/ld/dwarf_test.go +++ b/src/cmd/link/internal/ld/dwarf_test.go @@ -279,7 +279,7 @@ func TestSizes(t *testing.T) { // External linking may bring in C symbols with unknown size. Skip. // - // N.B. go build below explictly doesn't pass through + // N.B. go build below explicitly doesn't pass through // -asan/-msan/-race, so we don't care about those. testenv.MustInternalLink(t, testenv.NoSpecialBuildTypes) @@ -855,7 +855,7 @@ func TestAbstractOriginSanityIssue26237(t *testing.T) { func TestRuntimeTypeAttrInternal(t *testing.T) { testenv.MustHaveGoBuild(t) - // N.B. go build below explictly doesn't pass through + // N.B. go build below explicitly doesn't pass through // -asan/-msan/-race, so we don't care about those. testenv.MustInternalLink(t, testenv.NoSpecialBuildTypes) @@ -1489,7 +1489,7 @@ func TestIssue42484(t *testing.T) { testenv.MustHaveGoBuild(t) // Avoid spurious failures from external linkers. // - // N.B. go build below explictly doesn't pass through + // N.B. go build below explicitly doesn't pass through // -asan/-msan/-race, so we don't care about those. testenv.MustInternalLink(t, testenv.NoSpecialBuildTypes) diff --git a/src/cmd/link/internal/ld/ld_test.go b/src/cmd/link/internal/ld/ld_test.go index 9a27ac8c764fc5..97abbc350f5631 100644 --- a/src/cmd/link/internal/ld/ld_test.go +++ b/src/cmd/link/internal/ld/ld_test.go @@ -22,7 +22,7 @@ func TestUndefinedRelocErrors(t *testing.T) { // When external linking, symbols may be defined externally, so we allow // undefined symbols and let external linker resolve. Skip the test. // - // N.B. go build below explictly doesn't pass through + // N.B. go build below explicitly doesn't pass through // -asan/-msan/-race, so we don't care about those. testenv.MustInternalLink(t, testenv.NoSpecialBuildTypes) diff --git a/src/cmd/link/link_test.go b/src/cmd/link/link_test.go index 0125ba8e0f56be..0b6ec49bd904d0 100644 --- a/src/cmd/link/link_test.go +++ b/src/cmd/link/link_test.go @@ -46,7 +46,7 @@ func TestIssue21703(t *testing.T) { t.Parallel() testenv.MustHaveGoBuild(t) - // N.B. the build below explictly doesn't pass through + // N.B. the build below explicitly doesn't pass through // -asan/-msan/-race, so we don't care about those. testenv.MustInternalLink(t, testenv.NoSpecialBuildTypes) @@ -93,7 +93,7 @@ func TestIssue28429(t *testing.T) { t.Parallel() testenv.MustHaveGoBuild(t) - // N.B. go build below explictly doesn't pass through + // N.B. go build below explicitly doesn't pass through // -asan/-msan/-race, so we don't care about those. testenv.MustInternalLink(t, testenv.NoSpecialBuildTypes) @@ -193,7 +193,7 @@ main.x: relocation target main.zero not defined func TestIssue33979(t *testing.T) { testenv.MustHaveGoBuild(t) testenv.MustHaveCGO(t) - // N.B. go build below explictly doesn't pass through + // N.B. go build below explicitly doesn't pass through // -asan/-msan/-race, so we don't care about those. testenv.MustInternalLink(t, testenv.SpecialBuildTypes{Cgo: true}) @@ -959,7 +959,7 @@ func TestIndexMismatch(t *testing.T) { // This shouldn't happen with "go build". We invoke the compiler and the linker // manually, and try to "trick" the linker with an inconsistent object file. testenv.MustHaveGoBuild(t) - // N.B. the build below explictly doesn't pass through + // N.B. the build below explicitly doesn't pass through // -asan/-msan/-race, so we don't care about those. testenv.MustInternalLink(t, testenv.NoSpecialBuildTypes) diff --git a/src/cmd/nm/nm_cgo_test.go b/src/cmd/nm/nm_cgo_test.go index 13c93fb459eef4..498337830b3ba3 100644 --- a/src/cmd/nm/nm_cgo_test.go +++ b/src/cmd/nm/nm_cgo_test.go @@ -11,7 +11,7 @@ import ( func TestInternalLinkerCgoExec(t *testing.T) { testenv.MustHaveCGO(t) - // N.B. the go build explictly doesn't pass through + // N.B. the go build explicitly doesn't pass through // -asan/-msan/-race, so we don't care about those. testenv.MustInternalLink(t, testenv.SpecialBuildTypes{Cgo: true}) testGoExec(t, true, false) diff --git a/src/cmd/pack/pack_test.go b/src/cmd/pack/pack_test.go index 2922ada8e923cb..e79316a3f868e1 100644 --- a/src/cmd/pack/pack_test.go +++ b/src/cmd/pack/pack_test.go @@ -163,7 +163,7 @@ func TestExtract(t *testing.T) { // Test that pack-created archives can be understood by the tools. func TestHello(t *testing.T) { testenv.MustHaveGoBuild(t) - // N.B. the build below explictly doesn't pass through + // N.B. the build below explicitly doesn't pass through // -asan/-msan/-race, so we don't care about those. testenv.MustInternalLink(t, testenv.NoSpecialBuildTypes) diff --git a/src/encoding/json/internal/jsontest/testdata.go b/src/encoding/json/internal/jsontest/testdata.go index 74de366136ce97..3dfafab5742a87 100644 --- a/src/encoding/json/internal/jsontest/testdata.go +++ b/src/encoding/json/internal/jsontest/testdata.go @@ -198,7 +198,7 @@ type ( HangulSyllables string `json:"Hangul Syllables"` Hebrew string `json:"Hebrew"` Hiragana string `json:"Hiragana"` - IPAExtentions string `json:"IPA Extentions"` + IPAExtensions string `json:"IPA Extensions"` KangxiRadicals string `json:"Kangxi Radicals"` Katakana string `json:"Katakana"` Khmer string `json:"Khmer"` diff --git a/src/internal/runtime/cgroup/cgroup_linux.go b/src/internal/runtime/cgroup/cgroup_linux.go index 91815b4a1d0df8..638bdf8236ab26 100644 --- a/src/internal/runtime/cgroup/cgroup_linux.go +++ b/src/internal/runtime/cgroup/cgroup_linux.go @@ -610,7 +610,7 @@ func parseCPUMount(fd int, read func(fd int, b []byte) (int, uintptr), out []byt } // As in findCPUPath, cgroup v1 with a CPU controller takes - // precendence over cgroup v2. + // precedence over cgroup v2. if string(ftype) == "cgroup2" { // v2 hierarchy. n, err = unescapePath(out, mnt) diff --git a/src/internal/trace/trace_test.go b/src/internal/trace/trace_test.go index 4824937b700091..357cbf39aa3ac4 100644 --- a/src/internal/trace/trace_test.go +++ b/src/internal/trace/trace_test.go @@ -630,7 +630,7 @@ func testTraceProg(t *testing.T, progName string, extra func(t *testing.T, trace } cmd.Env = append(cmd.Env, "GODEBUG="+godebug) if _, ok := os.LookupEnv("GOTRACEBACK"); !ok { - // Unless overriden, set GOTRACEBACK=crash. + // Unless overridden, set GOTRACEBACK=crash. cmd.Env = append(cmd.Env, "GOTRACEBACK=crash") } diff --git a/src/internal/trace/traceviewer/static/trace_viewer_full.html b/src/internal/trace/traceviewer/static/trace_viewer_full.html index ae6e35fca22bad..962c54e08f041d 100644 --- a/src/internal/trace/traceviewer/static/trace_viewer_full.html +++ b/src/internal/trace/traceviewer/static/trace_viewer_full.html @@ -6683,7 +6683,7 @@