From: Alberto Donizetti Date: Tue, 15 Aug 2017 21:49:12 +0000 (+0200) Subject: cmd/go: make go tool suggest 'go doc cmd/' X-Git-Tag: go1.10beta1~1521 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=259f78f001c7f6e43063f06f25c9199f74c8c1d1;p=gostls13.git cmd/go: make go tool suggest 'go doc cmd/' $ gotip tool -h says: For more about each tool command, see 'go tool command -h'. But it's better to suggest go doc cmd/ Fixes #18313 Change-Id: I0a36d585906a5e1879e5b7927d1b6173e97cb500 Reviewed-on: https://go-review.googlesource.com/55990 Reviewed-by: Ian Lance Taylor --- diff --git a/src/cmd/go/alldocs.go b/src/cmd/go/alldocs.go index 7dd7ba90f0..c3d75ee793 100644 --- a/src/cmd/go/alldocs.go +++ b/src/cmd/go/alldocs.go @@ -782,7 +782,7 @@ // The -n flag causes tool to print the command that would be // executed but not execute it. // -// For more about each tool command, see 'go tool command -h'. +// For more about each tool command, see 'go doc cmd/'. // // // Print Go version diff --git a/src/cmd/go/internal/tool/tool.go b/src/cmd/go/internal/tool/tool.go index 51675262e5..db92884f6a 100644 --- a/src/cmd/go/internal/tool/tool.go +++ b/src/cmd/go/internal/tool/tool.go @@ -27,7 +27,7 @@ With no arguments it prints the list of known tools. The -n flag causes tool to print the command that would be executed but not execute it. -For more about each tool command, see 'go tool command -h'. +For more about each tool command, see 'go doc cmd/'. `, }