From 7a4787d12a23f75c670f618a049eaaac69eb4016 Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Thu, 31 Aug 2023 16:26:29 -0700 Subject: [PATCH] go/types, types2: fix doc string Change-Id: I9ab93c90d128d0abd0c84c7520f8c72983fee79b Reviewed-on: https://go-review.googlesource.com/c/go/+/524975 Reviewed-by: Ian Lance Taylor Reviewed-by: Robert Griesemer Run-TryBot: Robert Griesemer Auto-Submit: Robert Griesemer TryBot-Result: Gopher Robot --- src/cmd/compile/internal/types2/named.go | 2 +- src/go/types/named.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cmd/compile/internal/types2/named.go b/src/cmd/compile/internal/types2/named.go index 82c2cb3a5bf..fbe7f8ed124 100644 --- a/src/cmd/compile/internal/types2/named.go +++ b/src/cmd/compile/internal/types2/named.go @@ -224,7 +224,7 @@ func (n *Named) setState(state namedState) { atomic.StoreUint32(&n.state_, uint32(state)) } -// newNamed is like NewNamed but with a *Checker receiver and additional orig argument. +// newNamed is like NewNamed but with a *Checker receiver. func (check *Checker) newNamed(obj *TypeName, underlying Type, methods []*Func) *Named { typ := &Named{check: check, obj: obj, fromRHS: underlying, underlying: underlying, methods: methods} if obj.typ == nil { diff --git a/src/go/types/named.go b/src/go/types/named.go index e57cbbaa616..a27143b6c19 100644 --- a/src/go/types/named.go +++ b/src/go/types/named.go @@ -226,7 +226,7 @@ func (n *Named) setState(state namedState) { atomic.StoreUint32(&n.state_, uint32(state)) } -// newNamed is like NewNamed but with a *Checker receiver and additional orig argument. +// newNamed is like NewNamed but with a *Checker receiver. func (check *Checker) newNamed(obj *TypeName, underlying Type, methods []*Func) *Named { typ := &Named{check: check, obj: obj, fromRHS: underlying, underlying: underlying, methods: methods} if obj.typ == nil {