From 259f78f001c7f6e43063f06f25c9199f74c8c1d1 Mon Sep 17 00:00:00 2001 From: Alberto Donizetti Date: Tue, 15 Aug 2017 23:49:12 +0200 Subject: [PATCH] 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 --- src/cmd/go/alldocs.go | 2 +- src/cmd/go/internal/tool/tool.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cmd/go/alldocs.go b/src/cmd/go/alldocs.go index 7dd7ba90f09..c3d75ee7930 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 51675262e59..db92884f6aa 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/'. `, }