]> Cypherpunks repositories - gostls13.git/commitdiff
unsafe: refer to correct reflect functions
authorAndrew Gerrand <adg@golang.org>
Wed, 4 Jan 2012 06:14:56 +0000 (17:14 +1100)
committerAndrew Gerrand <adg@golang.org>
Wed, 4 Jan 2012 06:14:56 +0000 (17:14 +1100)
Fixes #2641.

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/5509043

src/pkg/unsafe/unsafe.go

index c49f54d34c78499d56ce63bde29a62cc087a8ba0..4955c2f224b39775cb702fac600bff512e1d3d0f 100644 (file)
@@ -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.