diff options
author | Hana Kim <hyangah@gmail.com> | 2019-09-19 16:08:45 -0400 |
---|---|---|
committer | Hyang-Ah Hana Kim <hyangah@gmail.com> | 2019-09-20 21:56:07 +0000 |
commit | f1b6d1016ee8d1c25999bc69bd73558476e2cf34 (patch) | |
tree | 9d6700cd1e3d7a78e478eb09290c7fe84e1e0e3b /src/runtime/debug | |
parent | dfbc9c83a910c79cb3cc34dbfaed3c436e1b6ecb (diff) | |
download | go-f1b6d1016ee8d1c25999bc69bd73558476e2cf34.tar.gz go-f1b6d1016ee8d1c25999bc69bd73558476e2cf34.zip |
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 <bcmills@google.com>
Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/runtime/debug')
-rw-r--r-- | src/runtime/debug/mod.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/debug/mod.go b/src/runtime/debug/mod.go index e3b929a977..837cd689a0 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 } |