Skip to content

Commit f1b6d10

Browse files
committed
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/+/196522 Reviewed-by: Bryan C. Mills <[email protected]> Run-TryBot: Hyang-Ah Hana Kim <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
1 parent dfbc9c8 commit f1b6d10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/debug/mod.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ func ReadBuildInfo() (info *BuildInfo, ok bool) {
2222
// the running binary.
2323
type BuildInfo struct {
2424
Path string // The main package path
25-
Main Module // The main module information
25+
Main Module // The module containing the main package
2626
Deps []*Module // Module dependencies
2727
}
2828

0 commit comments

Comments
 (0)