1
0
mirror of https://github.com/golang/go synced 2024-11-23 08:50:03 -07:00

pkg/reflect/value.go: Correction in comment, the argument is "typ", not "t".

LGTM=iant
R=golang-codereviews, iant
CC=golang-codereviews
https://golang.org/cl/89270043
This commit is contained in:
Lucio De Re 2014-04-18 08:11:31 -07:00 committed by Ian Lance Taylor
parent ba59375750
commit cd4c1f18a1

View File

@ -2297,7 +2297,7 @@ func Zero(typ Type) Value {
}
// New returns a Value representing a pointer to a new zero value
// for the specified type. That is, the returned Value's Type is PtrTo(t).
// for the specified type. That is, the returned Value's Type is PtrTo(typ).
func New(typ Type) Value {
if typ == nil {
panic("reflect: New(nil)")