Skip to content

Commit

Permalink
cmd/go: fix wording issue in comment
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
mvdan committed Jan 15, 2019
1 parent 76e8ca4 commit 55715c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/go/internal/modload/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 55715c1

Please sign in to comment.