Skip to content

Commit

Permalink
reflect: clarify that NumMethod returns only the number of exported m…
Browse files Browse the repository at this point in the history
…ethods

Fixes golang#17686.

Change-Id: I7d07c367e50b448579f9855bea43df76ddb82bd0
Reviewed-on: https://go-review.googlesource.com/32420
Reviewed-by: Rob Pike <r@golang.org>
  • Loading branch information
rakyll committed Oct 31, 2016
1 parent 53c004f commit 398e861
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/reflect/type.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 398e861

Please sign in to comment.