diff options
Diffstat (limited to 'src/cmd/compile')
| -rw-r--r-- | src/cmd/compile/internal/inline/inl.go | 2 | ||||
| -rw-r--r-- | src/cmd/compile/internal/ir/func.go | 2 | ||||
| -rw-r--r-- | src/cmd/compile/internal/noder/expr.go | 2 | ||||
| -rw-r--r-- | src/cmd/compile/internal/pgo/irgraph.go | 4 | ||||
| -rw-r--r-- | src/cmd/compile/internal/ssa/compile.go | 2 | ||||
| -rw-r--r-- | src/cmd/compile/internal/ssa/debug.go | 2 | ||||
| -rw-r--r-- | src/cmd/compile/internal/test/testdata/arith_test.go | 2 | ||||
| -rw-r--r-- | src/cmd/compile/internal/typecheck/subr.go | 2 |
8 files changed, 9 insertions, 9 deletions
diff --git a/src/cmd/compile/internal/inline/inl.go b/src/cmd/compile/internal/inline/inl.go index 84e61f34a2..8620db2adb 100644 --- a/src/cmd/compile/internal/inline/inl.go +++ b/src/cmd/compile/internal/inline/inl.go @@ -1442,7 +1442,7 @@ func (subst *inlsubst) clovar(n *ir.Name) *ir.Name { return m } -// closure does the necessary substitions for a ClosureExpr n and returns the new +// closure does the necessary substitutions for a ClosureExpr n and returns the new // closure node. func (subst *inlsubst) closure(n *ir.ClosureExpr) ir.Node { // Prior to the subst edit, set a flag in the inlsubst to indicate diff --git a/src/cmd/compile/internal/ir/func.go b/src/cmd/compile/internal/ir/func.go index b0b8da5d18..8f56c6f2f6 100644 --- a/src/cmd/compile/internal/ir/func.go +++ b/src/cmd/compile/internal/ir/func.go @@ -386,7 +386,7 @@ func NameClosure(clo *ClosureExpr, outerfn *Func) { MarkFunc(name) } -// UseClosure checks that the ginen function literal has been setup +// UseClosure checks that the given function literal has been setup // correctly, and then returns it as an expression. // It must be called after clo.Func.ClosureVars has been set. func UseClosure(clo *ClosureExpr, pkg *Package) Node { diff --git a/src/cmd/compile/internal/noder/expr.go b/src/cmd/compile/internal/noder/expr.go index f391339c36..79b4b0b33c 100644 --- a/src/cmd/compile/internal/noder/expr.go +++ b/src/cmd/compile/internal/noder/expr.go @@ -167,7 +167,7 @@ func (g *irgen) expr0(typ types2.Type, expr syntax.Expr) ir.Node { } } -// substType does a normal type substition, but tparams is in the form of a field +// substType does a normal type substitution, but tparams is in the form of a field // list, and targs is in terms of a slice of type nodes. substType records any newly // instantiated types into g.instTypeList. func (g *irgen) substType(typ *types.Type, tparams *types.Type, targs []ir.Ntype) *types.Type { diff --git a/src/cmd/compile/internal/pgo/irgraph.go b/src/cmd/compile/internal/pgo/irgraph.go index bf11e365f1..8177cf855e 100644 --- a/src/cmd/compile/internal/pgo/irgraph.go +++ b/src/cmd/compile/internal/pgo/irgraph.go @@ -53,7 +53,7 @@ import ( "os" ) -// IRGraph is the key datastrcture that is built from profile. It is +// IRGraph is the key data structure that is built from profile. It is // essentially a call graph with nodes pointing to IRs of functions and edges // carrying weights and callsite information. The graph is bidirectional that // helps in removing nodes efficiently. @@ -223,7 +223,7 @@ func (p *Profile) processprofileGraph(g *Graph) bool { return true } -// initializeIRGraph builds the IRGraph by visting all the ir.Func in decl list +// initializeIRGraph builds the IRGraph by visiting all the ir.Func in decl list // of a package. func (p *Profile) initializeIRGraph() { // Bottomup walk over the function to create IRGraph. diff --git a/src/cmd/compile/internal/ssa/compile.go b/src/cmd/compile/internal/ssa/compile.go index 769f225850..423564caf9 100644 --- a/src/cmd/compile/internal/ssa/compile.go +++ b/src/cmd/compile/internal/ssa/compile.go @@ -328,7 +328,7 @@ commas. For example: switch flag { case "on": checkEnabled = val != 0 - debugPoset = checkEnabled // also turn on advanced self-checking in prove's datastructure + debugPoset = checkEnabled // also turn on advanced self-checking in prove's data structure return "" case "off": checkEnabled = val == 0 diff --git a/src/cmd/compile/internal/ssa/debug.go b/src/cmd/compile/internal/ssa/debug.go index 584aaef3bf..0cd006b21c 100644 --- a/src/cmd/compile/internal/ssa/debug.go +++ b/src/cmd/compile/internal/ssa/debug.go @@ -803,7 +803,7 @@ func (state *debugState) liveness() []*BlockDebug { // the first call, subsequent calls can only shrink startState. // // Passing forLocationLists=true enables additional side-effects that -// are necessary for building location lists but superflous while still +// are necessary for building location lists but superfluous while still // iterating to an answer. // // If previousBlock is non-nil, it registers changes vs. that block's diff --git a/src/cmd/compile/internal/test/testdata/arith_test.go b/src/cmd/compile/internal/test/testdata/arith_test.go index 253142a0fb..2b8cd9fad3 100644 --- a/src/cmd/compile/internal/test/testdata/arith_test.go +++ b/src/cmd/compile/internal/test/testdata/arith_test.go @@ -223,7 +223,7 @@ func testArithConstShift(t *testing.T) { } } -// overflowConstShift_ssa verifes that constant folding for shift +// overflowConstShift_ssa verifies that constant folding for shift // doesn't wrap (i.e. x << MAX_INT << 1 doesn't get folded to x << 0). // //go:noinline diff --git a/src/cmd/compile/internal/typecheck/subr.go b/src/cmd/compile/internal/typecheck/subr.go index 9760e366b5..29d992f324 100644 --- a/src/cmd/compile/internal/typecheck/subr.go +++ b/src/cmd/compile/internal/typecheck/subr.go @@ -1524,7 +1524,7 @@ func Shapify(t *types.Type, index int, tparam *types.Type) *types.Type { // have these other shape types embedded in them. This may lead to // generating extra shape instantiations, and a mismatch between the // instantiations that we used in generating dictionaries and the - // instantations that are actually called. (#51303). + // instantiations that are actually called. (#51303). list := []*types.Type{} getShapes(t, &list) list2 := make([]*types.Type, len(list)) |
