]> Cypherpunks repositories - gostls13.git/commitdiff
reflect: document that value.NumMethod counts exported methods
authorIan Lance Taylor <iant@golang.org>
Thu, 29 Jun 2017 15:06:22 +0000 (08:06 -0700)
committerIan Lance Taylor <iant@golang.org>
Thu, 29 Jun 2017 15:28:16 +0000 (15:28 +0000)
Updates #17686
Fixes #20848

Change-Id: I35d58c7d1aa74d3e7867124070e27c787d444b04
Reviewed-on: https://go-review.googlesource.com/47210
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/reflect/value.go

index a84af8cae931be8fb299557ddb0ad9a3521470a3..3d73338809420ba7c45d42c5bc5d7e527313a38d 100644 (file)
@@ -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})