mirror of
https://github.com/golang/go
synced 2024-11-12 09:50:21 -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:
parent
ba59375750
commit
cd4c1f18a1
@ -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)")
|
||||
|
Loading…
Reference in New Issue
Block a user