]> Cypherpunks repositories - gostls13.git/commitdiff
reflect: clarify that NumMethod returns only the number of exported methods
authorJaana Burcu Dogan <jbd@google.com>
Mon, 31 Oct 2016 15:58:42 +0000 (08:58 -0700)
committerJaana Burcu Dogan <jbd@google.com>
Mon, 31 Oct 2016 17:17:05 +0000 (17:17 +0000)
Fixes #17686.

Change-Id: I7d07c367e50b448579f9855bea43df76ddb82bd0
Reviewed-on: https://go-review.googlesource.com/32420
Reviewed-by: Rob Pike <r@golang.org>
src/reflect/type.go

index 89e02bccd71818891957a62c4e71e8518b30346f..66c27ebb93d0b0f4343360d2abd79796fb481645 100644 (file)
@@ -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.