From: Ian Lance Taylor Date: Thu, 29 Jun 2017 15:06:22 +0000 (-0700) Subject: reflect: document that value.NumMethod counts exported methods X-Git-Tag: go1.9rc1~124 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=7e4d1a05e577d630f9b7f51ce31d2a5d7f52568e;p=gostls13.git reflect: document that value.NumMethod counts exported methods Updates #17686 Fixes #20848 Change-Id: I35d58c7d1aa74d3e7867124070e27c787d444b04 Reviewed-on: https://go-review.googlesource.com/47210 Reviewed-by: Brad Fitzpatrick --- diff --git a/src/reflect/value.go b/src/reflect/value.go index a84af8cae9..3d73338809 100644 --- a/src/reflect/value.go +++ b/src/reflect/value.go @@ -1134,7 +1134,7 @@ func (v Value) Method(i int) Value { return Value{v.typ, v.ptr, fl} } -// NumMethod returns the number of methods in the value's method set. +// NumMethod returns the number of exported methods in the value's method set. func (v Value) NumMethod() int { if v.typ == nil { panic(&ValueError{"reflect.Value.NumMethod", Invalid})