Skip to content

Commit 580636a

Browse files
jbamptonianlancetaylor
authored andcommitted
all: fix spelling
Change-Id: Iad14571c3e19b01740cd744f0b3025b3e2f1cb72 GitHub-Last-Rev: e806401 GitHub-Pull-Request: #44685 Reviewed-on: https://go-review.googlesource.com/c/go/+/297409 Trust: Alberto Donizetti <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]>
1 parent a6eeb4a commit 580636a

File tree

9 files changed

+16
-16
lines changed

9 files changed

+16
-16
lines changed

src/cmd/compile/internal/ir/visit.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ package ir
2525
//
2626
// var do func(ir.Node) bool
2727
// do = func(x ir.Node) bool {
28-
// ... processing BEFORE visting children ...
28+
// ... processing BEFORE visiting children ...
2929
// if ... should visit children ... {
3030
// ir.DoChildren(x, do)
31-
// ... processing AFTER visting children ...
31+
// ... processing AFTER visiting children ...
3232
// }
3333
// if ... should stop parent DoChildren call from visiting siblings ... {
3434
// return true
@@ -43,11 +43,11 @@ package ir
4343
//
4444
// var do func(ir.Node) bool
4545
// do = func(x ir.Node) bool {
46-
// ... processing BEFORE visting children ...
46+
// ... processing BEFORE visiting children ...
4747
// if ... should visit children ... {
4848
// ir.DoChildren(x, do)
4949
// }
50-
// ... processing AFTER visting children ...
50+
// ... processing AFTER visiting children ...
5151
// return false
5252
// }
5353
// do(root)

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ func (check *Checker) funcInst(x *operand, inst *syntax.IndexExpr) {
7171
x.expr = inst
7272
return
7373
}
74-
// all type arguments were inferred sucessfully
74+
// all type arguments were inferred successfully
7575
if debug {
7676
for _, targ := range targs {
7777
assert(targ != nil)
@@ -402,7 +402,7 @@ func (check *Checker) arguments(call *syntax.CallExpr, sig *Signature, args []*o
402402
return
403403
}
404404
}
405-
// all type arguments were inferred sucessfully
405+
// all type arguments were inferred successfully
406406
if debug {
407407
for _, targ := range targs {
408408
assert(targ != nil)

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ func (check *Checker) funcType(sig *Signature, recvPar *syntax.Field, tparams []
426426
}
427427

428428
// goTypeName returns the Go type name for typ and
429-
// removes any occurences of "types." from that name.
429+
// removes any occurrences of "types." from that name.
430430
func goTypeName(typ Type) string {
431431
return strings.Replace(fmt.Sprintf("%T", typ), "types.", "", -1) // strings.ReplaceAll is not available in Go 1.4
432432
}
@@ -710,7 +710,7 @@ func (check *Checker) arrayLength(e syntax.Expr) int64 {
710710
}
711711

712712
// typeList provides the list of types corresponding to the incoming expression list.
713-
// If an error occured, the result is nil, but all list elements were type-checked.
713+
// If an error occurred, the result is nil, but all list elements were type-checked.
714714
func (check *Checker) typeList(list []syntax.Expr) []Type {
715715
res := make([]Type, len(list)) // res != nil even if len(list) == 0
716716
for i, x := range list {

src/go/types/call.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ func (check *Checker) funcInst(x *operand, inst *ast.IndexExpr) {
7373
x.expr = inst
7474
return
7575
}
76-
// all type arguments were inferred sucessfully
76+
// all type arguments were inferred successfully
7777
if debug {
7878
for _, targ := range targs {
7979
assert(targ != nil)
@@ -404,7 +404,7 @@ func (check *Checker) arguments(call *ast.CallExpr, sig *Signature, args []*oper
404404
return
405405
}
406406
}
407-
// all type arguments were inferred sucessfully
407+
// all type arguments were inferred successfully
408408
if debug {
409409
for _, targ := range targs {
410410
assert(targ != nil)

src/go/types/examples/types.go2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ func _() {
146146

147147
// We accept parenthesized embedded struct fields so we can distinguish between
148148
// a named field with a parenthesized type foo (T) and an embedded parameterized
149-
// type (foo(T)), similarly to interace embedding.
149+
// type (foo(T)), similarly to interface embedding.
150150
// They still need to be valid embedded types after the parentheses are stripped
151151
// (i.e., in contrast to interfaces, we cannot embed a struct literal). The name
152152
// of the embedded field is derived as before, after stripping parentheses.

src/go/types/typexpr.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ func (check *Checker) funcType(sig *Signature, recvPar *ast.FieldList, ftyp *ast
398398
}
399399

400400
// goTypeName returns the Go type name for typ and
401-
// removes any occurences of "types." from that name.
401+
// removes any occurrences of "types." from that name.
402402
func goTypeName(typ Type) string {
403403
return strings.ReplaceAll(fmt.Sprintf("%T", typ), "types.", "")
404404
}
@@ -674,7 +674,7 @@ func (check *Checker) arrayLength(e ast.Expr) int64 {
674674
}
675675

676676
// typeList provides the list of types corresponding to the incoming expression list.
677-
// If an error occured, the result is nil, but all list elements were type-checked.
677+
// If an error occurred, the result is nil, but all list elements were type-checked.
678678
func (check *Checker) typeList(list []ast.Expr) []Type {
679679
res := make([]Type, len(list)) // res != nil even if len(list) == 0
680680
for i, x := range list {

src/reflect/abi.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ func newAbiDesc(t *funcType, rcvr *rtype) abiDesc {
378378
// Stack-assigned return values do not share
379379
// space with arguments like they do with registers,
380380
// so we need to inject a stack offset here.
381-
// Fake it by artifically extending stackBytes by
381+
// Fake it by artificially extending stackBytes by
382382
// the return offset.
383383
out.stackBytes = retOffset
384384
for i, res := range t.out() {

src/syscall/exec_windows_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ func TestChangingProcessParent(t *testing.T) {
108108
}
109109
childOutput, err = ioutil.ReadFile(childDumpPath)
110110
if err != nil {
111-
t.Fatalf("reading child ouput failed: %v", err)
111+
t.Fatalf("reading child output failed: %v", err)
112112
}
113113
if got, want := string(childOutput), fmt.Sprintf("%d", parent.Process.Pid); got != want {
114114
t.Fatalf("child output: want %q, got %q", want, got)

test/run.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,7 @@ func (t *test) run() {
757757
// up and running against the existing test cases. The explicitly
758758
// listed files don't pass yet, usually because the error messages
759759
// are slightly different (this list is not complete). Any errorcheck
760-
// tests that require output from analysis phases past intial type-
760+
// tests that require output from analysis phases past initial type-
761761
// checking are also excluded since these phases are not running yet.
762762
// We can get rid of this code once types2 is fully plugged in.
763763

0 commit comments

Comments
 (0)