From: Andrew Gerrand Date: Wed, 4 Jan 2012 06:14:56 +0000 (+1100) Subject: unsafe: refer to correct reflect functions X-Git-Tag: weekly.2012-01-15~155 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=9d92676f63c3de78eeaab302bc5868308e6af5ad;p=gostls13.git unsafe: refer to correct reflect functions Fixes #2641. R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/5509043 --- diff --git a/src/pkg/unsafe/unsafe.go b/src/pkg/unsafe/unsafe.go index c49f54d34c..4955c2f224 100644 --- a/src/pkg/unsafe/unsafe.go +++ b/src/pkg/unsafe/unsafe.go @@ -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.