mirror of
https://github.com/golang/go.git
synced 2024-09-30 14:57:10 +00:00
unsafe: refer to correct reflect functions
Fixes #2641. R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/5509043
This commit is contained in:
parent
dfedd34d4f
commit
9d92676f63
@ -52,7 +52,7 @@ func Unreflect(typ interface{}, addr Pointer) (ret interface{})
|
||||
|
||||
// New allocates and returns a pointer to memory for a new value of the given type.
|
||||
// The typ is assumed to hold a pointer to a runtime type.
|
||||
// Callers should use reflect.MakeZero instead of invoking unsafe.New directly.
|
||||
// Callers should use reflect.New or reflect.Zero instead of invoking unsafe.New directly.
|
||||
func New(typ interface{}) Pointer
|
||||
|
||||
// NewArray allocates and returns a pointer to an array of n elements of the given type.
|
||||
|
Loading…
Reference in New Issue
Block a user