Skip to content
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

go/parser: document of ParseExprFrom is wrong #18398

Closed
tenntenn opened this issue Dec 21, 2016 · 1 comment
Closed

go/parser: document of ParseExprFrom is wrong #18398

tenntenn opened this issue Dec 21, 2016 · 1 comment

Comments

@tenntenn
Copy link
Contributor

@tenntenn tenntenn commented Dec 21, 2016

Please answer these questions before submitting your issue. Thanks!

What version of Go are you using (go version)?

go version go1.7.4 darwin/amd64

What operating system and processor architecture are you using (go env)?

GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/tenntenn/Documents/gopath"
GORACE=""
GOROOT="/usr/local/go1.7"
GOTOOLDIR="/usr/local/go1.7/pkg/tool/darwin_amd64"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/mq/m9_twy8j1vl9ppr6j5xqtfq80000gn/T/go-build939239608=/tmp/go-build -gno-record-gcc-switches -fno-common"
CXX="clang++"
CGO_ENABLED="1"

What did you do?

If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.

The document of ParseExprFrom refers to Parse but Parse function is not exist in go/parser package.
I think ParseFile is correct.

What did you expect to see?

ParseFile is correct.

What did you see instead?

The document refers to Parse.

@gopherbot
Copy link

@gopherbot gopherbot commented Dec 21, 2016

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

@gopherbot gopherbot closed this in 8599c0d Dec 21, 2016
@golang golang locked and limited conversation to collaborators Dec 21, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.