Skip to content

Commit 80876f4

Browse files
committed
cmd/go/internal/vet: tweak help doc
For #71859 Change-Id: I3cea3375bd5adff9486b849e472d29ad8324dd54 Reviewed-on: https://go-review.googlesource.com/c/go/+/712665 Reviewed-by: Michael Matloob <matloob@golang.org> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Auto-Submit: Alan Donovan <adonovan@google.com> Reviewed-by: Michael Matloob <matloob@google.com>
1 parent b5aefe0 commit 80876f4

File tree

2 files changed

+20
-18
lines changed

2 files changed

+20
-18
lines changed

src/cmd/go/alldocs.go

Lines changed: 10 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/cmd/go/internal/vet/vet.go

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,12 @@ can be built and run using these commands:
5454
Alternative vet tools should be built atop golang.org/x/tools/go/analysis/unitchecker,
5555
which handles the interaction with go vet.
5656
57-
For more about specifying packages, see 'go help packages'.
58-
For a list of checkers and their flags, see 'go tool vet help'.
57+
The default vet tool is 'go tool vet' or cmd/vet.
58+
For help on its checkers and their flags, run 'go tool vet help'.
5959
For details of a specific checker such as 'printf', see 'go tool vet help printf'.
6060
61+
For more about specifying packages, see 'go help packages'.
62+
6163
The build flags supported by go vet are those that control package resolution
6264
and execution, such as -C, -n, -x, -v, -tags, and -toolexec.
6365
For more about these flags, see 'go help build'.
@@ -71,7 +73,7 @@ var CmdFix = &base.Command{
7173
UsageLine: "go fix [build flags] [-fixtool prog] [fix flags] [packages]",
7274
Short: "apply fixes suggested by static checkers",
7375
Long: `
74-
Fix runs the Go fix tool (cmd/vet) on the named packages
76+
Fix runs the Go fix tool (cmd/fix) on the named packages
7577
and applies suggested fixes.
7678
7779
It supports these flags:
@@ -80,15 +82,14 @@ It supports these flags:
8082
instead of applying each fix, print the patch as a unified diff
8183
8284
The -fixtool=prog flag selects a different analysis tool with
83-
alternative or additional fixes; see the documentation for go vet's
85+
alternative or additional fixers; see the documentation for go vet's
8486
-vettool flag for details.
8587
86-
For more about specifying packages, see 'go help packages'.
87-
88-
For a list of fixers and their flags, see 'go tool fix help'.
88+
The default fix tool is 'go tool fix' or cmd/fix.
89+
For help on its fixers and their flags, run 'go tool fix help'.
90+
For details of a specific fixer such as 'hostport', see 'go tool fix help hostport'.
8991
90-
For details of a specific fixer such as 'hostport',
91-
see 'go tool fix help hostport'.
92+
For more about specifying packages, see 'go help packages'.
9293
9394
The build flags supported by go fix are those that control package resolution
9495
and execution, such as -C, -n, -x, -v, -tags, and -toolexec.

0 commit comments

Comments
 (0)