summaryrefslogtreecommitdiff
path: root/src/cmd/go/fix.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/go/fix.go')
-rw-r--r--src/cmd/go/fix.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cmd/go/fix.go b/src/cmd/go/fix.go
index bae9f5c98..6a0ad0774 100644
--- a/src/cmd/go/fix.go
+++ b/src/cmd/go/fix.go
@@ -7,14 +7,14 @@ package main
var cmdFix = &Command{
Run: runFix,
UsageLine: "fix [importpath...]",
- Short: "run gofix on packages",
+ Short: "run go tool fix on packages",
Long: `
-Fix runs the gofix command on the packages named by the import paths.
+Fix runs the Go fix command on the packages named by the import paths.
-For more about gofix, see 'godoc gofix'.
+For more about fix, see 'godoc fix'.
For more about import paths, see 'go help importpath'.
-To run gofix with specific options, run gofix itself.
+To run fix with specific options, run 'go tool fix'.
See also: go fmt, go vet.
`,
@@ -25,6 +25,6 @@ func runFix(cmd *Command, args []string) {
// Use pkg.gofiles instead of pkg.Dir so that
// the command only applies to this package,
// not to packages in subdirectories.
- run(stringList("gofix", relPaths(pkg.gofiles)))
+ run(stringList(tool("fix"), relPaths(pkg.gofiles)))
}
}