Skip to content

Commit 8ffc931

Browse files
AlexanderYastrebovgopherbot
authored andcommitted
all: fix spelling errors
Fix spelling errors discovered using https://github.com/codespell-project/codespell. Errors in data files and vendored packages are ignored. Change-Id: I83c7818222f2eea69afbd270c15b7897678131dc GitHub-Last-Rev: 3491615 GitHub-Pull-Request: #60758 Reviewed-on: https://go-review.googlesource.com/c/go/+/502576 Auto-Submit: Michael Pratt <[email protected]> Run-TryBot: Michael Pratt <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Michael Pratt <[email protected]>
1 parent 80629ca commit 8ffc931

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+77
-77
lines changed

src/cmd/asm/internal/asm/parse.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1149,7 +1149,7 @@ ListLoop:
11491149
}
11501150
a.Offset = offset
11511151
default:
1152-
p.errorf("register list not supported on this architecuture")
1152+
p.errorf("register list not supported on this architecture")
11531153
}
11541154
}
11551155

src/cmd/asm/internal/asm/testdata/amd64error.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ TEXT errors(SB),$0
132132
VADDPD.BCST X3, X2, K1, X1 // ERROR "illegal broadcast without memory argument"
133133
VADDPD.BCST X3, X2, K1, X1 // ERROR "illegal broadcast without memory argument"
134134
VADDPD.BCST X3, X2, K1, X1 // ERROR "illegal broadcast without memory argument"
135-
// CLWB instuctions:
135+
// CLWB instructions:
136136
CLWB BX // ERROR "invalid instruction"
137137
// CLDEMOTE instructions:
138138
CLDEMOTE BX // ERROR "invalid instruction"

src/cmd/cgo/internal/test/test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ int add(int x, int y) {
115115
return x+y;
116116
};
117117
118-
// Following mimicks vulkan complex definitions for benchmarking cgocheck overhead.
118+
// Following mimics vulkan complex definitions for benchmarking cgocheck overhead.
119119
120120
typedef uint32_t VkFlags;
121121
typedef VkFlags VkDeviceQueueCreateFlags;

src/cmd/compile/internal/base/timings.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
var Timer Timings
1515

1616
// Timings collects the execution times of labeled phases
17-
// which are added trough a sequence of Start/Stop calls.
17+
// which are added through a sequence of Start/Stop calls.
1818
// Events may be associated with each phase via AddEvent.
1919
type Timings struct {
2020
list []timestamp

src/cmd/compile/internal/escape/call.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ func (e *escape) callCommon(ks []hole, call ir.Node, init *ir.Nodes, wrapper *ir
115115
args := call.Args
116116
if recv := fntype.Recv(); recv != nil {
117117
if recvp == nil {
118-
// Function call using method expression. Recevier argument is
118+
// Function call using method expression. Receiver argument is
119119
// at the front of the regular arguments list.
120120
recvp = &args[0]
121121
args = args[1:]

src/cmd/compile/internal/ssa/_gen/ARM64.rules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
(Sqrt32 ...) => (FSQRTS ...)
6363

6464
// lowering rotates
65-
// we do rotate detection in generic rules, if the following rules need to be changed, chcek generic rules first.
65+
// we do rotate detection in generic rules, if the following rules need to be changed, check generic rules first.
6666
(RotateLeft8 <t> x (MOVDconst [c])) => (Or8 (Lsh8x64 <t> x (MOVDconst [c&7])) (Rsh8Ux64 <t> x (MOVDconst [-c&7])))
6767
(RotateLeft8 <t> x y) => (OR <t> (SLL <t> x (ANDconst <typ.Int64> [7] y)) (SRL <t> (ZeroExt8to64 x) (ANDconst <typ.Int64> [7] (NEG <typ.Int64> y))))
6868
(RotateLeft16 <t> x (MOVDconst [c])) => (Or16 (Lsh16x64 <t> x (MOVDconst [c&15])) (Rsh16Ux64 <t> x (MOVDconst [-c&15])))

src/cmd/compile/internal/ssa/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ type Logger interface {
143143
type Frontend interface {
144144
Logger
145145

146-
// CanSSA reports whether variabbles of type t are SSA-able.
146+
// CanSSA reports whether variables of type t are SSA-able.
147147
CanSSA(t *types.Type) bool
148148

149149
// StringData returns a symbol pointing to the given string's contents.

src/cmd/compile/internal/ssa/debug.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -969,7 +969,7 @@ func (state *debugState) mergePredecessors(b *Block, blockLocs []*BlockDebug, pr
969969
}
970970

971971
state.currentState.reset(abt.T{})
972-
// The normal logic of "reset" is incuded in the intersection loop below.
972+
// The normal logic of "reset" is included in the intersection loop below.
973973

974974
slotLocs := state.currentState.slots
975975

src/cmd/compile/internal/ssa/expand_calls.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ func (x *expandState) indent(n int) {
276276
x.indentLevel += n
277277
}
278278

279-
// Printf does an indented fmt.Printf on te format and args.
279+
// Printf does an indented fmt.Printf on the format and args.
280280
func (x *expandState) Printf(format string, a ...interface{}) (n int, err error) {
281281
if x.indentLevel > 0 {
282282
fmt.Printf("%[1]*s", x.indentLevel, "")

src/cmd/compile/internal/ssa/poset.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -964,7 +964,7 @@ func (po *poset) NonEqual(n1, n2 *Value) bool {
964964
return false
965965
}
966966

967-
// Check if we recored inequality
967+
// Check if we recorded inequality
968968
if po.isnoneq(i1, i2) {
969969
return true
970970
}
@@ -1166,7 +1166,7 @@ func (po *poset) SetEqual(n1, n2 *Value) bool {
11661166
}
11671167

11681168
// If we already knew that n1<=n2, we can collapse the path to
1169-
// record n1==n2 (and viceversa).
1169+
// record n1==n2 (and vice versa).
11701170
if po.reaches(i1, i2, false) {
11711171
return po.collapsepath(n1, n2)
11721172
}

src/cmd/compile/internal/ssa/prove.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1195,7 +1195,7 @@ func addBranchRestrictions(ft *factsTable, b *Block, br branch) {
11951195
func addRestrictions(parent *Block, ft *factsTable, t domain, v, w *Value, r relation) {
11961196
if t == 0 {
11971197
// Trivial case: nothing to do.
1198-
// Shoult not happen, but just in case.
1198+
// Should not happen, but just in case.
11991199
return
12001200
}
12011201
for i := domain(1); i <= t; i <<= 1 {

src/cmd/compile/internal/ssa/rewrite.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1555,7 +1555,7 @@ func mergePPC64AndSrwi(m, s int64) int64 {
15551555
// Return the encoded RLWINM constant, or 0 if they cannot be merged.
15561556
func mergePPC64ClrlsldiSrw(sld, srw int64) int64 {
15571557
mask_1 := uint64(0xFFFFFFFF >> uint(srw))
1558-
// for CLRLSLDI, it's more convient to think of it as a mask left bits then rotate left.
1558+
// for CLRLSLDI, it's more convenient to think of it as a mask left bits then rotate left.
15591559
mask_2 := uint64(0xFFFFFFFFFFFFFFFF) >> uint(GetPPC64Shiftmb(int64(sld)))
15601560

15611561
// Rewrite mask to apply after the final left shift.
@@ -1575,7 +1575,7 @@ func mergePPC64ClrlsldiSrw(sld, srw int64) int64 {
15751575
// the encoded RLWINM constant, or 0 if they cannot be merged.
15761576
func mergePPC64ClrlsldiRlwinm(sld int32, rlw int64) int64 {
15771577
r_1, _, _, mask_1 := DecodePPC64RotateMask(rlw)
1578-
// for CLRLSLDI, it's more convient to think of it as a mask left bits then rotate left.
1578+
// for CLRLSLDI, it's more convenient to think of it as a mask left bits then rotate left.
15791579
mask_2 := uint64(0xFFFFFFFFFFFFFFFF) >> uint(GetPPC64Shiftmb(int64(sld)))
15801580

15811581
// combine the masks, and adjust for the final left shift.

src/cmd/compile/internal/ssa/schedule.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ func schedule(f *Func) {
185185
// Schedule flag register generation as late as possible.
186186
// This makes sure that we only have one live flags
187187
// value at a time.
188-
// Note that this case is afer the case above, so values
188+
// Note that this case is after the case above, so values
189189
// which both read and generate flags are given ScoreReadFlags.
190190
score[v.ID] = ScoreFlags
191191
default:

src/cmd/compile/internal/walk/range.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ func walkRange(nrange *ir.RangeStmt) ir.Node {
199199
hu := typecheck.Temp(types.Types[types.TUINTPTR])
200200
init = append(init, ir.NewAssignStmt(base.Pos, hu, huVal))
201201

202-
// Convert hu to hp at the top of the loop (afer the condition has been checked).
202+
// Convert hu to hp at the top of the loop (after the condition has been checked).
203203
hpVal := ir.NewConvExpr(base.Pos, ir.OCONVNOP, types.Types[types.TUNSAFEPTR], hu)
204204
hpVal.SetCheckPtr(true) // disable checkptr on this conversion
205205
hpVal = ir.NewConvExpr(base.Pos, ir.OCONVNOP, elem.PtrTo(), hpVal)

src/cmd/compile/internal/walk/temp.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func stackTempAddr(init *ir.Nodes, typ *types.Type) *ir.AddrExpr {
2828
return initStackTemp(init, typecheck.Temp(typ), nil)
2929
}
3030

31-
// stackBufAddr returns thte expression &tmp, where tmp is a newly
31+
// stackBufAddr returns the expression &tmp, where tmp is a newly
3232
// allocated temporary variable of type [len]elem. This variable is
3333
// initialized, and elem must not contain pointers.
3434
func stackBufAddr(len int64, elem *types.Type) *ir.AddrExpr {

src/cmd/covdata/metamerge.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ func (mm *metaMerge) beginPod() {
160160
// the things in a pod -- counter files and meta-data file. There are
161161
// three cases of interest here:
162162
//
163-
// Case 1: in an unconditonal merge (we're not selecting a specific set of
163+
// Case 1: in an unconditional merge (we're not selecting a specific set of
164164
// packages using "-pkg", and the "-pcombine" option is not in use),
165165
// we can simply copy over the meta-data file from input to output.
166166
//

src/cmd/covdata/tool_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@ func testMergeCombinePrograms(t *testing.T, s state) {
672672
t.Errorf("merge run produced unexpected output: %v", lines)
673673
}
674674

675-
// We expect the merge tool to produce exacty two files: a meta
675+
// We expect the merge tool to produce exactly two files: a meta
676676
// data file and a counter file. If we get more than just this one
677677
// pair, something went wrong.
678678
podlist, err := pods.CollectPods([]string{moutdir}, true)

src/cmd/go/internal/load/pkg.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2940,7 +2940,7 @@ func setPGOProfilePath(pkgs []*Package) {
29402940
// Locate PGO profiles from the main packages, and
29412941
// attach the profile to the main package and its
29422942
// dependencies.
2943-
// If we're builing multiple main packages, they may
2943+
// If we're building multiple main packages, they may
29442944
// have different profiles. We may need to split (unshare)
29452945
// the dependency graph so they can attach different
29462946
// profiles.

src/cmd/go/internal/modget/get.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ func runGet(ctx context.Context, cmd *base.Command, args []string) {
344344
// The result of any version query for a given module — even "upgrade" or
345345
// "patch" — is always relative to the build list at the start of
346346
// the 'go get' command, not an intermediate state, and is therefore
347-
// dederministic and therefore cachable, and the constraints on the
347+
// deterministic and therefore cachable, and the constraints on the
348348
// selected version of each module can only narrow as we iterate.
349349
//
350350
// "all" is functionally very similar to a wildcard pattern. The set of
@@ -359,7 +359,7 @@ func runGet(ctx context.Context, cmd *base.Command, args []string) {
359359

360360
// When we load imports, we detect the following conditions:
361361
//
362-
// - missing transitive depencies that need to be resolved from outside the
362+
// - missing transitive dependencies that need to be resolved from outside the
363363
// current build list (note that these may add new matches for existing
364364
// pattern queries!)
365365
//

src/cmd/go/internal/modget/query.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ type query struct {
9898
resolved []module.Version
9999

100100
// matchesPackages is true if the resolved modules provide at least one
101-
// package mathcing q.pattern.
101+
// package matching q.pattern.
102102
matchesPackages bool
103103
}
104104

src/cmd/go/internal/modindex/read.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ func moduleHash(modroot string, ismodcache bool) (cache.ActionID, error) {
6161
//
6262
// Note that this is true even for modules in GOROOT/src: non-release builds
6363
// of the Go toolchain may have arbitrary development changes on top of the
64-
// commit reported by runtime.Version, or could be completly artificial due
64+
// commit reported by runtime.Version, or could be completely artificial due
6565
// to lacking a `git` binary (like "devel gomote.XXXXX", as synthesized by
6666
// "gomote push" as of 2022-06-15). (Release builds shouldn't have
6767
// modifications, but we don't want to use a behavior for releases that we

src/cmd/go/internal/vcweb/vcweb.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ func (s *Server) overview(w http.ResponseWriter, r *http.Request) {
362362
fmt.Fprintf(w, "<title>vcweb</title>\n<pre>\n")
363363
fmt.Fprintf(w, "<b>vcweb</b>\n\n")
364364
fmt.Fprintf(w, "This server serves various version control repos for testing the go command.\n\n")
365-
fmt.Fprintf(w, "For an overview of the script lanugage, see <a href=\"/help\">/help</a>.\n\n")
365+
fmt.Fprintf(w, "For an overview of the script language, see <a href=\"/help\">/help</a>.\n\n")
366366

367367
fmt.Fprintf(w, "<b>cache</b>\n")
368368

src/cmd/go/testdata/script/cgo_suspect_flag_force_external.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# non-standard host objects.
1919
#
2020
# As of 1.21 we continue to use internal linking for programs whose
21-
# CGO use comes ony from stdlib packages in the absence of any flag
21+
# CGO use comes only from stdlib packages in the absence of any flag
2222
# funny business, however if the Go command sees flags that may be suspicious,
2323
# it signals the Go linker to invoke the external linker.
2424

src/cmd/go/testdata/script/env_cross_build.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Test that the corect default GOEXPERIMENT is used when cross
1+
# Test that the correct default GOEXPERIMENT is used when cross
22
# building with GOENV (#46815).
33

44
# Unset variables set by the TestScript harness. Users typically won't

src/cmd/go/testdata/script/mod_deprecate_message.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ stderr '^go: module long is deprecated: \(message omitted: too long\)$'
1717
go list -m -u -f '{{.Deprecated}}' long
1818
stdout '^aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa$'
1919

20-
# When a message contains unprintable chracters, 'go get' should say that
20+
# When a message contains unprintable characters, 'go get' should say that
2121
# without printing the message.
2222
go get unprintable
2323
stderr '^go: module unprintable is deprecated: \(message omitted: contains non-printable characters\)$'

src/cmd/go/testdata/script/mod_get_moved.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ go get example.com/split/[email protected]
88
go list -m all
99
stdout 'example.com/split v1.0.0'
1010

11-
# A 'go get' that simultaneously upgrades away conflicting package defitions is not ambiguous.
11+
# A 'go get' that simultaneously upgrades away conflicting package definitions is not ambiguous.
1212
go get example.com/split/[email protected]
1313

1414
# A 'go get' without an upgrade should find the package.

src/cmd/go/testdata/script/mod_get_split.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ stderr '^go: example.net/split/nested: ambiguous import: found package example.n
5252
# (perhaps 'latest' or 'none'), or we can report an error and the let the user
5353
# disambiguate. We would rather not choose arbitrarily, so we do the latter.
5454
#
55-
# TODO(#27899): Should we instead upgrade or downgrade to an arbirary version?
55+
# TODO(#27899): Should we instead upgrade or downgrade to an arbitrary version?
5656

5757
! go get example.net/split/nested/[email protected]
5858
stderr '^go: example.net/split/nested/\.\.\[email protected] matches packages in example.net/[email protected] but not example.net/[email protected]: specify a different version for module example.net/split$'

src/cmd/go/testdata/script/mod_install_pkg_version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ stderr '^go: example.com/cmd/nomatch\.\.\[email protected]: module example.com/[email protected]
142142
go install example.com/cmd/[email protected] example.com/cmd/[email protected]
143143
stderr '^go: warning: "example.com/cmd/nomatch\.\.\." matched no packages$'
144144

145-
# If a wildcard matches only non-main packges, we should see a different warning.
145+
# If a wildcard matches only non-main packages, we should see a different warning.
146146
go install example.com/cmd/[email protected]
147147
stderr '^go: warning: "example.com/cmd/err\.\.\." matched only non-main packages$'
148148

src/cmd/go/testdata/script/mod_tidy_compat_added.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ cmp go.mod go.mod.orig
2323

2424

2525
# When we run 'go mod tidy -e', we should proceed past the first error and follow
26-
# it with a second error describing the version descrepancy.
26+
# it with a second error describing the version discrepancy.
2727
#
28-
# We should not provide advice on how to push past the version descrepancy,
28+
# We should not provide advice on how to push past the version discrepancy,
2929
# because the '-e' flag should already do that, writing out an otherwise-tidied
3030
# go.mod file.
3131

src/cmd/internal/cov/readcovdata.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ type CovDataVisitor interface {
108108
EndCounters()
109109

110110
// Invoked for each package in the meta-data file for the pod,
111-
// first the 'begin' method when processinf of the package starts,
111+
// first the 'begin' method when processing of the package starts,
112112
// then the 'end' method when we're done
113113
BeginPackage(pd *decodemeta.CoverageMetaDataDecoder, pkgIdx uint32)
114114
EndPackage(pd *decodemeta.CoverageMetaDataDecoder, pkgIdx uint32)

src/cmd/internal/obj/arm64/a.out.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,8 @@ const (
193193
// compiler allocates external registers F26 down
194194
const (
195195
REGMIN = REG_R7 // register variables allocated from here to REGMAX
196-
REGRT1 = REG_R16 // ARM64 IP0, external linker may use as a scrach register in trampoline
197-
REGRT2 = REG_R17 // ARM64 IP1, external linker may use as a scrach register in trampoline
196+
REGRT1 = REG_R16 // ARM64 IP0, external linker may use as a scratch register in trampoline
197+
REGRT2 = REG_R17 // ARM64 IP1, external linker may use as a scratch register in trampoline
198198
REGPR = REG_R18 // ARM64 platform register, unused in the Go toolchain
199199
REGMAX = REG_R25
200200

src/cmd/internal/obj/wasm/wasmobj.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ func preprocess(ctxt *obj.Link, s *obj.LSym, newprog obj.ProgAlloc) {
228228
for _, f := range wi.Params {
229229
// Each load instructions will consume the value of sp on the stack, so
230230
// we need to read sp for each param. WASM appears to not have a stack dup instruction
231-
// (a strange ommission for a stack-based VM), if it did, we'd be using the dup here.
231+
// (a strange omission for a stack-based VM), if it did, we'd be using the dup here.
232232
p = appendp(p, AGet, regAddr(REG_SP))
233233

234234
// Offset is the location of the param on the Go stack (ie relative to sp).

src/cmd/internal/objabi/reloctype.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ const (
8484
R_USETYPE
8585
// R_USEIFACE marks a type is converted to an interface in the function this
8686
// relocation is applied to. The target is a type descriptor or an itab
87-
// (in the latter case it refers to the conrete type contained in the itab).
87+
// (in the latter case it refers to the concrete type contained in the itab).
8888
// This is a marker relocation (0-sized), for the linker's reachabililty
8989
// analysis.
9090
R_USEIFACE
@@ -230,7 +230,7 @@ const (
230230
R_ADDRPOWER_GOT
231231

232232
// R_ADDRPOWER_GOT_PCREL34 is identical to R_ADDRPOWER_GOT, but uses a PC relative
233-
// sequence to generate a GOT symbol addresss.
233+
// sequence to generate a GOT symbol addresses.
234234
R_ADDRPOWER_GOT_PCREL34
235235

236236
// R_ADDRPOWER_PCREL relocates two D-form instructions like R_ADDRPOWER, but

src/cmd/internal/testdir/testdir_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ func compileInDir(runcmd runCmd, dir string, flags []string, importcfg string, p
201201
return runcmd(cmd...)
202202
}
203203

204-
var stdlibImportcfgStringOnce sync.Once // TODO(#56102): Use sync.OnceValue once availabe. Also below.
204+
var stdlibImportcfgStringOnce sync.Once // TODO(#56102): Use sync.OnceValue once available. Also below.
205205
var stdlibImportcfgString string
206206

207207
func stdlibImportcfg() string {

src/cmd/link/internal/ld/dwarf.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1989,7 +1989,7 @@ type dwUnitSyms struct {
19891989

19901990
// dwUnitPortion assembles the DWARF content for a given compilation
19911991
// unit: debug_info, debug_lines, debug_ranges, debug_loc (debug_frame
1992-
// is handled elsewere). Order is important; the calls to writelines
1992+
// is handled elsewhere). Order is important; the calls to writelines
19931993
// and writepcranges below make updates to the compilation unit DIE,
19941994
// hence they have to happen before the call to writeUnitInfo.
19951995
func (d *dwctxt) dwUnitPortion(u *sym.CompilationUnit, abbrevsym loader.Sym, us *dwUnitSyms) {

src/cmd/link/internal/ld/pe.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,7 @@ func (f *peFile) writeSymbols(ctxt *Link) {
779779
// - https://docs.microsoft.com/en-us/windows/win32/debug/pe-format#export-address-table
780780
// - https://sourceware.org/git/?p=binutils-gdb.git;a=blob;f=ld/pe-dll.c;h=e7b82ba6ffadf74dc1b9ee71dc13d48336941e51;hb=HEAD#l972)
781781
//
782-
// CL 317917 changes "." to ":" in symbols name, so theses symbols can not be
782+
// CL 317917 changes "." to ":" in symbols name, so these symbols can not be
783783
// found by external linker anymore. So a hacky way is adding the
784784
// underscore prefix for these 2 symbols. I don't have enough knowledge to
785785
// verify whether adding the underscore for all STEXT/STYPE symbols are

src/cmd/link/internal/loader/loader.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1126,7 +1126,7 @@ func (l *Loader) SetAttrReadOnly(i Sym, v bool) {
11261126
//
11271127
// - Outer symbol covers the address ranges of its sub-symbols.
11281128
// Outer.Sub is set in this case.
1129-
// - Outer symbol doesn't conver the address ranges. It is zero-sized
1129+
// - Outer symbol doesn't cover the address ranges. It is zero-sized
11301130
// and doesn't have sub-symbols. In the case, the inner symbol is
11311131
// not actually a "SubSymbol". (Tricky!)
11321132
//

src/cmd/trace/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ func main() {
124124

125125
log.Print("Splitting trace...")
126126
ranges = splitTrace(res)
127-
reportMemoryUsage("after spliting trace")
127+
reportMemoryUsage("after splitting trace")
128128
debug.FreeOSMemory()
129129

130130
addr := "http://" + ln.Addr().String()

src/compress/flate/deflate_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -801,7 +801,7 @@ func checkErrors(got []error, want error, t *testing.T) {
801801
t.Helper()
802802
for _, err := range got {
803803
if err != want {
804-
t.Errorf("Errors dosn't match\nWant: %s\nGot: %s", want, got)
804+
t.Errorf("Error doesn't match\nWant: %s\nGot: %s", want, got)
805805
}
806806
}
807807
}

src/crypto/sha256/sha256block_amd64.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@
564564
#define digestPtr DI // input/output, base pointer to digest hash vector H0, H1, ..., H7
565565
#define dataPtr SI // input, base pointer to first input data block
566566
#define numBytes DX // input, number of input bytes to be processed
567-
#define sha256Constants AX // round contants from K256 table, indexed by round number x 32
567+
#define sha256Constants AX // round contents from K256 table, indexed by round number x 32
568568
#define msg X0 // input data
569569
#define state0 X1 // round intermediates and outputs
570570
#define state1 X2

0 commit comments

Comments
 (0)