]> Cypherpunks repositories - gostls13.git/commitdiff
pkg/reflect/value.go: Correction in comment, the argument is "typ", not "t".
authorLucio De Re <lucio.dere@gmail.com>
Fri, 18 Apr 2014 15:11:31 +0000 (08:11 -0700)
committerIan Lance Taylor <iant@golang.org>
Fri, 18 Apr 2014 15:11:31 +0000 (08:11 -0700)
LGTM=iant
R=golang-codereviews, iant
CC=golang-codereviews
https://golang.org/cl/89270043

src/pkg/reflect/value.go

index 39cc91991f7ee9fb9f0aa715aa37f26f1ea4159d..2cbda3983cdf5587a0d7dae6c41d3be5d8cbdc11 100644 (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)")