mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
reflect: clarify that NumMethod returns only the number of exported methods
Fixes #17686. Change-Id: I7d07c367e50b448579f9855bea43df76ddb82bd0 Reviewed-on: https://go-review.googlesource.com/32420 Reviewed-by: Rob Pike <r@golang.org>
This commit is contained in:
parent
53c004f94e
commit
398e861d97
1 changed files with 1 additions and 1 deletions
|
|
@ -63,7 +63,7 @@ type Type interface {
|
|||
// method signature, without a receiver, and the Func field is nil.
|
||||
MethodByName(string) (Method, bool)
|
||||
|
||||
// NumMethod returns the number of methods in the type's method set.
|
||||
// NumMethod returns the number of exported methods in the type's method set.
|
||||
NumMethod() int
|
||||
|
||||
// Name returns the type's name within its package.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue