// 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
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
// 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
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