]> Cypherpunks repositories - gostls13.git/commit
reflect: fix Value.NumMethod docs
authorzlasd <zlasd@hotmail.com>
Sun, 27 Mar 2022 13:17:53 +0000 (21:17 +0800)
committerIan Lance Taylor <iant@golang.org>
Mon, 4 Apr 2022 17:27:45 +0000 (17:27 +0000)
commitac313524fe4997b80a4221647f0da79d0e07b88e
treee1c4addaad0193c0ec9b8a2881c3a3c9c3732466
parent35998c010947d3a5a26409fffcb4ed16c3595850
reflect: fix Value.NumMethod docs

NumMethod counts unexported methods for interface types. This
behavior is documented in Type.NumMethod

Fixes #42123

Change-Id: Ia5aba353a8cc64190c701d1521972d57e8903564
Reviewed-on: https://go-review.googlesource.com/c/go/+/396075
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Trust: Cherry Mui <cherryyz@google.com>
src/reflect/type.go
src/reflect/value.go