diff --git a/src/cmd/go/alldocs.go b/src/cmd/go/alldocs.go index 6a1cb8b810..46466fd5c8 100644 --- a/src/cmd/go/alldocs.go +++ b/src/cmd/go/alldocs.go @@ -3,7 +3,7 @@ // license that can be found in the LICENSE file. // Code generated by 'go test cmd/go -v -run=TestDocsUpToDate -fixdocs'; DO NOT EDIT. -// Edit the documentation in other files and rerun mkalldocs.sh to generate this one. +// Edit the documentation in other files and then execute 'go generate cmd/go' to generate this one. // Go is a tool for managing Go source code. // diff --git a/src/cmd/go/internal/help/help.go b/src/cmd/go/internal/help/help.go index dd1f2f745c..aeaba78df5 100644 --- a/src/cmd/go/internal/help/help.go +++ b/src/cmd/go/internal/help/help.go @@ -28,7 +28,7 @@ func Help(w io.Writer, args []string) { fmt.Fprintln(w, "// license that can be found in the LICENSE file.") fmt.Fprintln(w) fmt.Fprintln(w, "// Code generated by 'go test cmd/go -v -run=TestDocsUpToDate -fixdocs'; DO NOT EDIT.") - fmt.Fprintln(w, "// Edit the documentation in other files and rerun mkalldocs.sh to generate this one.") + fmt.Fprintln(w, "// Edit the documentation in other files and then execute 'go generate cmd/go' to generate this one.") fmt.Fprintln(w) buf := new(strings.Builder) PrintUsage(buf, base.Go)