aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal
diff options
context:
space:
mode:
authormohanson <mohanson@outlook.com>2025-10-15 10:27:16 +0800
committerGopher Robot <gobot@golang.org>2025-10-15 13:48:28 -0700
commit0984dcd7572a90a1bd21bec98bd9c73fdcf983ab (patch)
tree969f7a650d5a4588c2bfdb8520951bbe62fe1fc0 /src/cmd/compile/internal
parent31f82877e85a7e6c70b0104e704abfed622e345f (diff)
downloadgo-0984dcd7572a90a1bd21bec98bd9c73fdcf983ab.tar.xz
cmd/compile: fix an error in comments
Remove the redundant only. Change-Id: I9cf2d84ae080a567ad45a2d0ef002c7c89395479 Reviewed-on: https://go-review.googlesource.com/c/go/+/711960 Auto-Submit: Robert Findley <rfindley@google.com> Reviewed-by: Robert Griesemer <gri@google.com> Reviewed-by: Robert Findley <rfindley@google.com> TryBot-Bypass: Robert Griesemer <gri@google.com>
Diffstat (limited to 'src/cmd/compile/internal')
-rw-r--r--src/cmd/compile/internal/types2/instantiate.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/compile/internal/types2/instantiate.go b/src/cmd/compile/internal/types2/instantiate.go
index 1c8c12d07c..8b24f2fc68 100644
--- a/src/cmd/compile/internal/types2/instantiate.go
+++ b/src/cmd/compile/internal/types2/instantiate.go
@@ -83,7 +83,7 @@ func Instantiate(ctxt *Context, orig Type, targs []Type, validate bool) (Type, e
//
// For Named types the resulting instance may be unexpanded.
//
-// check may be nil (when not type-checking syntax); pos is used only only if check is non-nil.
+// check may be nil (when not type-checking syntax); pos is used only if check is non-nil.
func (check *Checker) instance(pos syntax.Pos, orig genericType, targs []Type, expanding *Named, ctxt *Context) (res Type) {
// The order of the contexts below matters: we always prefer instances in the
// expanding instance context in order to preserve reference cycles.