summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Gerrand <adg@golang.org>2013-09-24 10:49:54 +1000
committerAndrew Gerrand <adg@golang.org>2013-09-24 10:49:54 +1000
commit0821ce18ce875f27bdbf7bda74b28acc97cac37b (patch)
tree01ea1a6567399648b3f444cd7a52186acff7dcd1
parent02b0af88bc660f5649cf9f9133cea2d748c1d1d1 (diff)
downloadgo-0821ce18ce875f27bdbf7bda74b28acc97cac37b.tar.gz
reflect: update docs; Interface can return a method value
Fixes issue 6460. R=golang-dev, r CC=golang-dev https://codereview.appspot.com/13761046
-rw-r--r--src/pkg/reflect/value.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/pkg/reflect/value.go b/src/pkg/reflect/value.go
index 20fc459e5..5acb69efa 100644
--- a/src/pkg/reflect/value.go
+++ b/src/pkg/reflect/value.go
@@ -971,10 +971,7 @@ func (v Value) CanInterface() bool {
// Interface returns v's current value as an interface{}.
// It is equivalent to:
// var i interface{} = (v's underlying value)
-// If v is a method obtained by invoking Value.Method
-// (as opposed to Type.Method), Interface cannot return an
-// interface value, so it panics.
-// It also panics if the Value was obtained by accessing
+// It panics if the Value was obtained by accessing
// unexported struct fields.
func (v Value) Interface() (i interface{}) {
return valueInterface(v, true)