Skip to content

Commit 377ba96

Browse files
Sajjonpull[bot]
authored andcommitted
src: fix typos
Fix typos in ~30 files Change-Id: Ie433aea01e7d15944c1e9e103691784876d5c1f9 GitHub-Last-Rev: bbaeb3d GitHub-Pull-Request: #68964 Reviewed-on: https://go-review.googlesource.com/c/go/+/606955 Auto-Submit: Ian Lance Taylor <[email protected]> Reviewed-by: Cherry Mui <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]>
1 parent 1e42a27 commit 377ba96

File tree

23 files changed

+30
-30
lines changed

23 files changed

+30
-30
lines changed

src/cmd/cgo/internal/testerrors/argposition_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,16 @@ func (v *Visitor) Visit(node ast.Node) ast.Visitor {
4141
var errorMessage strings.Builder
4242
for caseIndex, expectedPos := range expectedPositions {
4343
actualPosition := v.fset.PositionFor(ident.Pos(), true)
44-
errorOccured := false
44+
errorOccurred := false
4545
if expectedPos.Line != actualPosition.Line {
4646
fmt.Fprintf(&errorMessage, "wrong line number for ident %s: expected: %d got: %d\n", ident.Name, expectedPos.Line, actualPosition.Line)
47-
errorOccured = true
47+
errorOccurred = true
4848
}
4949
if expectedPos.Column != actualPosition.Column {
5050
fmt.Fprintf(&errorMessage, "wrong column number for ident %s: expected: %d got: %d\n", ident.Name, expectedPos.Column, actualPosition.Column)
51-
errorOccured = true
51+
errorOccurred = true
5252
}
53-
if errorOccured {
53+
if errorOccurred {
5454
continue
5555
}
5656
gotMatch = true

src/cmd/compile/internal/inline/inl.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -957,7 +957,7 @@ func canInlineCallExpr(callerfn *ir.Func, n *ir.CallExpr, callee *ir.Func, bigCa
957957
}
958958

959959
if base.Debug.Checkptr != 0 && types.IsRuntimePkg(callee.Sym().Pkg) {
960-
// We don't intrument runtime packages for checkptr (see base/flag.go).
960+
// We don't instrument runtime packages for checkptr (see base/flag.go).
961961
if log && logopt.Enabled() {
962962
logopt.LogOpt(n.Pos(), "cannotInlineCall", "inline", ir.FuncName(callerfn),
963963
fmt.Sprintf(`call to into runtime package function %s in -d=checkptr build`, ir.PkgFuncName(callee)))

src/cmd/compile/internal/inline/inlheur/testdata/props/returns.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,14 @@ func T_multi_return_nil(x, y bool) *Bar {
8888
return nil
8989
}
9090

91-
// returns.go T_multi_return_nil_anomoly 98 0 1
91+
// returns.go T_multi_return_nil_anomaly 98 0 1
9292
// ResultFlags
9393
// 0 ResultIsConcreteTypeConvertedToInterface
9494
// <endpropsdump>
9595
// {"Flags":0,"ParamFlags":[0,0],"ResultFlags":[4]}
9696
// <endcallsites>
9797
// <endfuncpreamble>
98-
func T_multi_return_nil_anomoly(x, y bool) Itf {
98+
func T_multi_return_nil_anomaly(x, y bool) Itf {
9999
if x && y {
100100
var qnil *Q
101101
return qnil

src/cmd/compile/internal/liveness/mergelocals.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -952,7 +952,7 @@ func (cs *cstate) computeIntervals() {
952952
//
953953
// Note the SPanchored: this ensures that the scheduler won't
954954
// move the MOVDaddr earlier than the vardef. With a variable
955-
// "xyz" that has no pointers, howver, if we start with
955+
// "xyz" that has no pointers, however, if we start with
956956
//
957957
// v66 = VarDef <mem> {t2} v65
958958
// v67 = LocalAddr <*T> {t2} v2 v66

src/cmd/compile/internal/pgoir/irgraph.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
// //line directives that change line numbers in strange ways should be rare,
3939
// and failing PGO matching on these files is not too big of a loss.
4040

41-
// Package pgoir assosciates a PGO profile with the IR of the current package
41+
// Package pgoir associates a PGO profile with the IR of the current package
4242
// compilation.
4343
package pgoir
4444

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6424,7 +6424,7 @@ func genssa(f *ssa.Func, pp *objw.Progs) {
64246424

64256425
if hotAlign > 0 && b.Hotness&ssa.HotPgoInitial == ssa.HotPgoInitial {
64266426
// So far this has only been shown profitable for PGO-hot loop headers.
6427-
// The Hotness values allows distinctions betwen initial blocks that are "hot" or not, and "flow-in" or not.
6427+
// The Hotness values allows distinctions between initial blocks that are "hot" or not, and "flow-in" or not.
64286428
// Currently only the initial blocks of loops are tagged in this way;
64296429
// there are no blocks tagged "pgo-hot" that are not also tagged "initial".
64306430
// TODO more heuristics, more architectures.

src/cmd/compile/internal/types2/signature.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ func (check *Checker) recordParenthesizedRecvTypes(expr syntax.Expr, typ Type) {
274274
}
275275
}
276276

277-
// collectParams collects (but does not delare) all parameters of list and returns
277+
// collectParams collects (but does not declare) all parameters of list and returns
278278
// the list of parameter names, corresponding parameter variables, and whether the
279279
// parameter list is variadic. Anonymous parameters are recorded with nil names.
280280
func (check *Checker) collectParams(list []*syntax.Field, variadicOk bool) (names []*syntax.Name, params []*Var, variadic bool) {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ module example.com/b
5151

5252
go 1.23
5353

54-
// The indrect comment below is inaccurate. Its purpose
54+
// The indirect comment below is inaccurate. Its purpose
5555
// is to test that it is corrected when enough packages
5656
// are loaded to correct it.
5757

src/cmd/internal/obj/loong64/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ start:
4848
4949
1. All generial-prupose register names are written as Rn.
5050
51-
2. All floating-poing register names are written as Fn.
51+
2. All floating-point register names are written as Fn.
5252
5353
# Argument mapping rules
5454

src/cmd/internal/obj/loong64/obj.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ func preprocess(ctxt *obj.Link, cursym *obj.LSym, newprog obj.ProgAlloc) {
411411
// The NOP is needed to give the jumps somewhere to land.
412412
// It is a liblink NOP, not a hardware NOP: it encodes to 0 instruction bytes.
413413
//
414-
// We don't generate this for leafs because that means the wrapped
414+
// We don't generate this for leaves because that means the wrapped
415415
// function was inlined into the wrapper.
416416

417417
q = obj.Appendp(q, newprog)

0 commit comments

Comments
 (0)