]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: fix wording issue in comment
authorDaniel Martí <mvdan@mvdan.cc>
Tue, 15 Jan 2019 18:29:15 +0000 (18:29 +0000)
committerDaniel Martí <mvdan@mvdan.cc>
Tue, 15 Jan 2019 19:37:52 +0000 (19:37 +0000)
golang.org/cl/157097 modified this comment, but left a trailing comma.
While at it, make the sentence a bit clearer.

Change-Id: I376dda4fd18ddbcae4485dd660a79b9f66ad6da4
Reviewed-on: https://go-review.googlesource.com/c/158037
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/go/internal/modload/build.go

index 70740aeacd6149a2846df9e4f20c9100e4bd490c..10bea15fa3ef7f2505152422fbccf047816d6615 100644 (file)
@@ -252,7 +252,7 @@ func findModule(target, path string) module.Version {
 func ModInfoProg(info string) []byte {
        // Inject a variable with the debug information as runtime/debug.modinfo,
        // but compile it in package main so that it is specific to the binary.
-       // No need to populate in an init func, it will still work with go:linkname,
+       // No need to populate it in an init func; it will still work with go:linkname.
        return []byte(fmt.Sprintf(`package main
 import _ "unsafe"
 //go:linkname __debug_modinfo__ runtime/debug.modinfo