From f1b6d1016ee8d1c25999bc69bd73558476e2cf34 Mon Sep 17 00:00:00 2001 From: Hana Kim Date: Thu, 19 Sep 2019 16:08:45 -0400 Subject: [PATCH] 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 Run-TryBot: Hyang-Ah Hana Kim TryBot-Result: Gobot Gobot --- src/runtime/debug/mod.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/debug/mod.go b/src/runtime/debug/mod.go index e3b929a977d31..837cd689a079a 100644 --- a/src/runtime/debug/mod.go +++ b/src/runtime/debug/mod.go @@ -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 }