]> Cypherpunks repositories - gostls13.git/commitdiff
all: fix spelling
authorJohn Bampton <jbampton@gmail.com>
Mon, 1 Mar 2021 09:47:09 +0000 (09:47 +0000)
committerIan Lance Taylor <iant@golang.org>
Tue, 2 Mar 2021 03:07:33 +0000 (03:07 +0000)
Change-Id: Iad14571c3e19b01740cd744f0b3025b3e2f1cb72
GitHub-Last-Rev: e8064019299f4e593116060ce2bbd14d62830af7
GitHub-Pull-Request: golang/go#44685
Reviewed-on: https://go-review.googlesource.com/c/go/+/297409
Trust: Alberto Donizetti <alb.donizetti@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/compile/internal/ir/visit.go
src/cmd/compile/internal/types2/call.go
src/cmd/compile/internal/types2/typexpr.go
src/go/types/call.go
src/go/types/examples/types.go2
src/go/types/typexpr.go
src/reflect/abi.go
src/syscall/exec_windows_test.go
test/run.go

index c1b3d4ed9508c0d94efec30dbb12317f0bfde056..e4aeae352209a7c5b6fe31aa263fc4f598cf3334 100644 (file)
@@ -25,10 +25,10 @@ package ir
 //
 //     var do func(ir.Node) bool
 //     do = func(x ir.Node) bool {
-//             ... processing BEFORE visting children ...
+//             ... processing BEFORE visiting children ...
 //             if ... should visit children ... {
 //                     ir.DoChildren(x, do)
-//                     ... processing AFTER visting children ...
+//                     ... processing AFTER visiting children ...
 //             }
 //             if ... should stop parent DoChildren call from visiting siblings ... {
 //                     return true
@@ -43,11 +43,11 @@ package ir
 //
 //     var do func(ir.Node) bool
 //     do = func(x ir.Node) bool {
-//             ... processing BEFORE visting children ...
+//             ... processing BEFORE visiting children ...
 //             if ... should visit children ... {
 //                     ir.DoChildren(x, do)
 //             }
-//             ... processing AFTER visting children ...
+//             ... processing AFTER visiting children ...
 //             return false
 //     }
 //     do(root)
index 72805c453bcbf8352004d8b00a033d4815d558e0..3f40a99b0744b8c1ce856ee6b493ff1107963650 100644 (file)
@@ -71,7 +71,7 @@ func (check *Checker) funcInst(x *operand, inst *syntax.IndexExpr) {
                        x.expr = inst
                        return
                }
-               // all type arguments were inferred sucessfully
+               // all type arguments were inferred successfully
                if debug {
                        for _, targ := range targs {
                                assert(targ != nil)
@@ -402,7 +402,7 @@ func (check *Checker) arguments(call *syntax.CallExpr, sig *Signature, args []*o
                                return
                        }
                }
-               // all type arguments were inferred sucessfully
+               // all type arguments were inferred successfully
                if debug {
                        for _, targ := range targs {
                                assert(targ != nil)
index 7190cb446ac46ec3566ddff5467d3fc455a232c0..02f9b2804d48c6c16c89f5a1b4552562882f7aa4 100644 (file)
@@ -426,7 +426,7 @@ func (check *Checker) funcType(sig *Signature, recvPar *syntax.Field, tparams []
 }
 
 // goTypeName returns the Go type name for typ and
-// removes any occurences of "types." from that name.
+// removes any occurrences of "types." from that name.
 func goTypeName(typ Type) string {
        return strings.Replace(fmt.Sprintf("%T", typ), "types.", "", -1) // strings.ReplaceAll is not available in Go 1.4
 }
@@ -710,7 +710,7 @@ func (check *Checker) arrayLength(e syntax.Expr) int64 {
 }
 
 // typeList provides the list of types corresponding to the incoming expression list.
-// If an error occured, the result is nil, but all list elements were type-checked.
+// If an error occurred, the result is nil, but all list elements were type-checked.
 func (check *Checker) typeList(list []syntax.Expr) []Type {
        res := make([]Type, len(list)) // res != nil even if len(list) == 0
        for i, x := range list {
index bd10f6fbc3dea50525ed19c5c96f0379571966d4..f23ca02e1ddd0f931f031abb08494171f0032b6e 100644 (file)
@@ -73,7 +73,7 @@ func (check *Checker) funcInst(x *operand, inst *ast.IndexExpr) {
                        x.expr = inst
                        return
                }
-               // all type arguments were inferred sucessfully
+               // all type arguments were inferred successfully
                if debug {
                        for _, targ := range targs {
                                assert(targ != nil)
@@ -404,7 +404,7 @@ func (check *Checker) arguments(call *ast.CallExpr, sig *Signature, args []*oper
                                return
                        }
                }
-               // all type arguments were inferred sucessfully
+               // all type arguments were inferred successfully
                if debug {
                        for _, targ := range targs {
                                assert(targ != nil)
index 20abefbe05d646ac1387b6edd0f066ed507a8045..59c8804ad279597f3e3e0ce80bd5e05ad2d79b00 100644 (file)
@@ -146,7 +146,7 @@ func _() {
 
 // We accept parenthesized embedded struct fields so we can distinguish between
 // a named field with a parenthesized type foo (T) and an embedded parameterized
-// type (foo(T)), similarly to interace embedding.
+// type (foo(T)), similarly to interface embedding.
 // They still need to be valid embedded types after the parentheses are stripped
 // (i.e., in contrast to interfaces, we cannot embed a struct literal). The name
 // of the embedded field is derived as before, after stripping parentheses.
index 8f30a67a2f7ebf8cb84b4838d2be45dc57c05f94..63e37de4b71da675ed160ecc23b082f79f33cd30 100644 (file)
@@ -398,7 +398,7 @@ func (check *Checker) funcType(sig *Signature, recvPar *ast.FieldList, ftyp *ast
 }
 
 // goTypeName returns the Go type name for typ and
-// removes any occurences of "types." from that name.
+// removes any occurrences of "types." from that name.
 func goTypeName(typ Type) string {
        return strings.ReplaceAll(fmt.Sprintf("%T", typ), "types.", "")
 }
@@ -674,7 +674,7 @@ func (check *Checker) arrayLength(e ast.Expr) int64 {
 }
 
 // typeList provides the list of types corresponding to the incoming expression list.
-// If an error occured, the result is nil, but all list elements were type-checked.
+// If an error occurred, the result is nil, but all list elements were type-checked.
 func (check *Checker) typeList(list []ast.Expr) []Type {
        res := make([]Type, len(list)) // res != nil even if len(list) == 0
        for i, x := range list {
index 20f41d96b5a8de61e644b19b666cf44ca3ca0eb9..36d6b3095bd8d84b88d62657d882541407bf49e0 100644 (file)
@@ -378,7 +378,7 @@ func newAbiDesc(t *funcType, rcvr *rtype) abiDesc {
        // Stack-assigned return values do not share
        // space with arguments like they do with registers,
        // so we need to inject a stack offset here.
-       // Fake it by artifically extending stackBytes by
+       // Fake it by artificially extending stackBytes by
        // the return offset.
        out.stackBytes = retOffset
        for i, res := range t.out() {
index 8a1c2ceaae4c7463183ba4da24909064dc341419..fb2c767c3515b64da0fe6e83d966864b8692d133 100644 (file)
@@ -108,7 +108,7 @@ func TestChangingProcessParent(t *testing.T) {
        }
        childOutput, err = ioutil.ReadFile(childDumpPath)
        if err != nil {
-               t.Fatalf("reading child ouput failed: %v", err)
+               t.Fatalf("reading child output failed: %v", err)
        }
        if got, want := string(childOutput), fmt.Sprintf("%d", parent.Process.Pid); got != want {
                t.Fatalf("child output: want %q, got %q", want, got)
index 657632643ead6bd33c34751962cd439f809e9531..570768e6807c2594beb77f3ee42b3fe70c32c927 100644 (file)
@@ -757,7 +757,7 @@ func (t *test) run() {
                // up and running against the existing test cases. The explicitly
                // listed files don't pass yet, usually because the error messages
                // are slightly different (this list is not complete). Any errorcheck
-               // tests that require output from analysis phases past intial type-
+               // tests that require output from analysis phases past initial type-
                // checking are also excluded since these phases are not running yet.
                // We can get rid of this code once types2 is fully plugged in.