Commit 7e4d1a05 authored by Ian Lance Taylor's avatar Ian Lance Taylor

reflect: document that value.NumMethod counts exported methods

Updates #17686
Fixes #20848

Change-Id: I35d58c7d1aa74d3e7867124070e27c787d444b04
Reviewed-on: https://go-review.googlesource.com/47210Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
parent d13d6b33
......@@ -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})
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment