diff options
Diffstat (limited to 'libgo/go/reflect/value.go')
-rw-r--r-- | libgo/go/reflect/value.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libgo/go/reflect/value.go b/libgo/go/reflect/value.go index 147a9c4..7c6a3e8 100644 --- a/libgo/go/reflect/value.go +++ b/libgo/go/reflect/value.go @@ -2175,6 +2175,7 @@ func NewAt(typ Type, p unsafe.Pointer) Value { // assignTo returns a value v that can be assigned directly to typ. // It panics if v is not assignable to typ. // For a conversion to an interface type, target is a suggested scratch space to use. +// target must be initialized memory (or nil). func (v Value) assignTo(context string, dst *rtype, target unsafe.Pointer) Value { if v.flag&flagMethod != 0 { v = makeMethodValue(context, v) |