]> Cypherpunks repositories - gostls13.git/commitdiff
go/types: fix typos in comments
authorOleksandr Redko <oleksandr.red+github@gmail.com>
Thu, 18 May 2023 08:16:31 +0000 (11:16 +0300)
committerRobert Findley <rfindley@google.com>
Fri, 19 May 2023 14:31:23 +0000 (14:31 +0000)
Change-Id: Ifadb11dc8ba8e63c736cb7ac277247bc587ce4b3
Reviewed-on: https://go-review.googlesource.com/c/go/+/496136
Reviewed-by: Bryan Mills <bcmills@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
src/cmd/compile/internal/types2/call.go
src/cmd/compile/internal/types2/infer.go
src/go/types/call.go
src/go/types/infer.go

index 0e8ace3325c6b2b125f4e752d1c010c02647dbe1..301dc634770cef05525ede319f02484484abc3d6 100644 (file)
@@ -473,7 +473,7 @@ func (check *Checker) genericExprList(elist []syntax.Expr) (resList []*operand,
 // are used together to infer any missing type arguments, and the callee and argument
 // functions are instantiated as necessary.
 // The result signature is the (possibly adjusted and instantiated) function signature.
-// If an error occured, the result signature is the incoming sig.
+// If an error occurred, the result signature is the incoming sig.
 func (check *Checker) arguments(call *syntax.CallExpr, sig *Signature, targs []Type, xlist []syntax.Expr, args []*operand, atargs [][]Type, atxlist [][]syntax.Expr) (rsig *Signature) {
        rsig = sig
 
index 77c594a72238ddd346de75b85853f95fb39f04c7..097e9c7ddb67229cd70e9985e405ccba4a6d36b8 100644 (file)
@@ -411,7 +411,7 @@ func (check *Checker) infer(pos syntax.Pos, tparams []*TypeParam, targs []Type,
                        t0 := inferred[index]
                        if t1 := check.subst(nopos, t0, smap, nil, check.context()); t1 != t0 {
                                // t0 was simplified to t1.
-                               // If t0 was a generic function, but the simplifed signature t1 does
+                               // If t0 was a generic function, but the simplified signature t1 does
                                // not contain any type parameters anymore, the function is not generic
                                // anymore. Remove it's type parameters. (go.dev/issue/59953)
                                // Note that if t0 was a signature, t1 must be a signature, and t1
index b7bdb5a098b8600d93ca01dd8023070bf90a7cc8..c8360dce57076f60d20344771bb11d936daffb86 100644 (file)
@@ -478,7 +478,7 @@ func (check *Checker) genericExprList(elist []ast.Expr) (resList []*operand, tar
 // are used together to infer any missing type arguments, and the callee and argument
 // functions are instantiated as necessary.
 // The result signature is the (possibly adjusted and instantiated) function signature.
-// If an error occured, the result signature is the incoming sig.
+// If an error occurred, the result signature is the incoming sig.
 func (check *Checker) arguments(call *ast.CallExpr, sig *Signature, targs []Type, xlist []ast.Expr, args []*operand, atargs [][]Type, atxlist [][]ast.Expr) (rsig *Signature) {
        rsig = sig
 
index b376ce4a4a741d178171312db8f892024981f3cd..ae1c2af1e424a968d12060202b5d94d33b8b4e14 100644 (file)
@@ -413,7 +413,7 @@ func (check *Checker) infer(posn positioner, tparams []*TypeParam, targs []Type,
                        t0 := inferred[index]
                        if t1 := check.subst(nopos, t0, smap, nil, check.context()); t1 != t0 {
                                // t0 was simplified to t1.
-                               // If t0 was a generic function, but the simplifed signature t1 does
+                               // If t0 was a generic function, but the simplified signature t1 does
                                // not contain any type parameters anymore, the function is not generic
                                // anymore. Remove it's type parameters. (go.dev/issue/59953)
                                // Note that if t0 was a signature, t1 must be a signature, and t1