x/tools/go/analysis/passes/inspect: package godoc example incorrect #35028
Labels
Documentation
Issues describing a change to documentation.
FrozenDueToAge
help wanted
NeedsFix
The path to resolution is known, but the work has not been done.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
What version of Go are you using (
go version
)?1.13
Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?Doesn't matter.
What did you do?
Apply the example from the inspect godoc.
See this playground example demonstrating the compile error.
What did you expect to see?
Not a compile error.
This specific line in the godoc for inspect.go (https://github.com/golang/tools/blob/master/go/analysis/passes/inspect/inspect.go#L19) should say:
Which can be verified in this playground example.
What did you see instead?
N/A.
The text was updated successfully, but these errors were encountered: