Commit f1b6d101 authored by Hana Kim's avatar Hana Kim Committed by Hyang-Ah Hana Kim

runtime/debug: correct BuildInfo.Main documentation

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/+/196522Reviewed-by: default avatarBryan C. Mills <bcmills@google.com>
Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
parent dfbc9c83
......@@ -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
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment