Skip to content

Commit 0984dcd

Browse files
mohansongopherbot
authored andcommitted
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>
1 parent 31f8287 commit 0984dcd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/cmd/compile/internal/types2/instantiate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ func Instantiate(ctxt *Context, orig Type, targs []Type, validate bool) (Type, e
8383
//
8484
// For Named types the resulting instance may be unexpanded.
8585
//
86-
// check may be nil (when not type-checking syntax); pos is used only only if check is non-nil.
86+
// check may be nil (when not type-checking syntax); pos is used only if check is non-nil.
8787
func (check *Checker) instance(pos syntax.Pos, orig genericType, targs []Type, expanding *Named, ctxt *Context) (res Type) {
8888
// The order of the contexts below matters: we always prefer instances in the
8989
// expanding instance context in order to preserve reference cycles.

src/go/types/instantiate.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)