summaryrefslogtreecommitdiff
path: root/src/pkg/reflect
diff options
context:
space:
mode:
authorLucio De Re <lucio.dere@gmail.com>2014-04-18 08:11:31 -0700
committerLucio De Re <lucio.dere@gmail.com>2014-04-18 08:11:31 -0700
commit13b4827c414b210972aa94c52e298906819dfbed (patch)
treedabc84431bcbfb403afcc88bf49afa19bca61b19 /src/pkg/reflect
parentd2cdc10ce43879b5338741b1d5a73562ba46f78d (diff)
downloadgo-13b4827c414b210972aa94c52e298906819dfbed.tar.gz
pkg/reflect/value.go: Correction in comment, the argument is "typ", not "t".
LGTM=iant R=golang-codereviews, iant CC=golang-codereviews https://codereview.appspot.com/89270043 Committer: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/pkg/reflect')
-rw-r--r--src/pkg/reflect/value.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/reflect/value.go b/src/pkg/reflect/value.go
index 39cc91991..2cbda3983 100644
--- a/src/pkg/reflect/value.go
+++ b/src/pkg/reflect/value.go
@@ -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)")