Skip to content

reflect: not equal comments for NumMethod() in Value and Type. #20848

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
dvrkps opened this issue Jun 29, 2017 · 1 comment
Closed

reflect: not equal comments for NumMethod() in Value and Type. #20848

dvrkps opened this issue Jun 29, 2017 · 1 comment

Comments

@dvrkps
Copy link
Contributor

dvrkps commented Jun 29, 2017

Please answer these questions before submitting your issue. Thanks!

What did you do?

Compare comments for NumMethod() in reflect.Type and reflect.Value.

What did you expect to see?

Equal text on both places.

What did you see instead?

$ go doc reflect.Type.NumMethod
// NumMethod returns the number of exported methods in the type's method set.
$ go doc reflect.Value.NumMethod
// NumMethod returns the number of methods in the value's method set.

Does this issue reproduce with the latest release (go1.8.3)?

Yes

System details

go version go1.9beta2 darwin/amd64
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/davor"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/9h/yvy5nvq917n_xcbth_j21kkh0000gn/T/go-build069963700=/tmp/go-build -gno-record-gcc-switches -fno-common"
CXX="clang++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOROOT/bin/go version: go version go1.9beta2 darwin/amd64
GOROOT/bin/go tool compile -V: compile version go1.9beta2 X:framepointer
uname -v: Darwin Kernel Version 16.6.0: Fri Apr 14 16:21:16 PDT 2017; root:xnu-3789.60.24~6/RELEASE_X86_64
ProductName:	Mac OS X
ProductVersion:	10.12.5
BuildVersion:	16F73
lldb --version: lldb-370.0.42
  Swift-3.1
@gopherbot
Copy link
Contributor

CL https://golang.org/cl/47210 mentions this issue.

@golang golang locked and limited conversation to collaborators Jun 29, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants