Skip to content

Commit 398e861

Browse files
committed
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 <[email protected]>
1 parent 53c004f commit 398e861

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/reflect/type.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ type Type interface {
6363
// method signature, without a receiver, and the Func field is nil.
6464
MethodByName(string) (Method, bool)
6565

66-
// NumMethod returns the number of methods in the type's method set.
66+
// NumMethod returns the number of exported methods in the type's method set.
6767
NumMethod() int
6868

6969
// Name returns the type's name within its package.

0 commit comments

Comments
 (0)