]> Cypherpunks repositories - gostls13.git/commitdiff
runtime/debug: correct BuildInfo.Main documentation
authorHana Kim <hyangah@gmail.com>
Thu, 19 Sep 2019 20:08:45 +0000 (16:08 -0400)
committerHyang-Ah Hana Kim <hyangah@gmail.com>
Fri, 20 Sep 2019 21:56:07 +0000 (21:56 +0000)
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>

src/runtime/debug/mod.go

index e3b929a977d31ffcb5b0ffc6dc8be661ab4d5135..837cd689a079af3175926f9b14bf8ff86c62867f 100644 (file)
@@ -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
 }