Commit cd4c1f18 authored by Lucio De Re's avatar Lucio De Re Committed by Ian Lance Taylor

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
parent ba593757
......@@ -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)")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment