cmd/compile: fix typo in comment Fix "nor" to "not" in genericExprList comment in src/cmd/compile/internal/types2/call.go. Change-Id: Ibf4f363e3191a8196c08bfdaa500f0d5ef6a4285 GitHub-Last-Rev: 5f11da9ad414db813ee46894d9d5087266408f4f GitHub-Pull-Request: golang/go#77668 Reviewed-on: https://go-review.googlesource.com/c/go/+/746500 Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Reviewed-by: Keith Randall <khr@google.com> Auto-Submit: Keith Randall <khr@golang.org> LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Keith Randall <khr@golang.org>
diff --git a/src/cmd/compile/internal/types2/call.go b/src/cmd/compile/internal/types2/call.go index 945d8be..87c68ce 100644 --- a/src/cmd/compile/internal/types2/call.go +++ b/src/cmd/compile/internal/types2/call.go
@@ -388,7 +388,7 @@ } // Before Go 1.21, uninstantiated or partially instantiated argument functions are - // nor permitted. Checker.funcInst must infer missing type arguments in that case. + // not permitted. Checker.funcInst must infer missing type arguments in that case. infer := true // for -lang < go1.21 n := len(elist) if n > 0 && check.allowVersion(go1_21) {
diff --git a/src/go/types/call.go b/src/go/types/call.go index 530b833..4d0bda0 100644 --- a/src/go/types/call.go +++ b/src/go/types/call.go
@@ -390,7 +390,7 @@ } // Before Go 1.21, uninstantiated or partially instantiated argument functions are - // nor permitted. Checker.funcInst must infer missing type arguments in that case. + // not permitted. Checker.funcInst must infer missing type arguments in that case. infer := true // for -lang < go1.21 n := len(elist) if n > 0 && check.allowVersion(go1_21) {