Skip to content

Commit

Permalink
runtime/debug: correct BuildInfo.Main documentation
Browse files Browse the repository at this point in the history
The term "main module" has a special meaning [1]
and is not what we intended to refer to with BuildInfo.Main.

[1] https://golang.org/cmd/go/#hdr-The_main_module_and_the_build_list

Updates #33975

Change-Id: Ieaba5fcacee2e87c5c15fa7425527bbd64ada5d5
Reviewed-on: https://go-review.googlesource.com/c/go/+/196522
Reviewed-by: Bryan C. Mills <[email protected]>
Run-TryBot: Hyang-Ah Hana Kim <[email protected]>
TryBot-Result: Gobot Gobot <[email protected]>
  • Loading branch information
hyangah committed Sep 20, 2019
1 parent dfbc9c8 commit f1b6d10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/debug/mod.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func ReadBuildInfo() (info *BuildInfo, ok bool) {
// the running binary.
type BuildInfo struct {
Path string // The main package path
Main Module // The main module information
Main Module // The module containing the main package
Deps []*Module // Module dependencies
}

Expand Down

0 comments on commit f1b6d10

Please sign in to comment.