x/tools/go/packages: docs for Config.Mode exception buried in LoadMode docs rather than Load #43850
Labels
Documentation
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
The docs for
go/packages.Load
state:However, this fails to call out the exception to this rule which is somewhat buried in the docs for
go/packages.LoadMode
:Indeed I think that exception is in the wrong place: it should be located in the docs for
go/packages.Load
, because it doesn't make any sense in the context of the docs for either the type or the constant values of that type.Unless I'm missing something?
cc @matloob
The text was updated successfully, but these errors were encountered: