Commit 7b8f8bf5 authored by Rob Pike's avatar Rob Pike

doc/reference-cmd: use vet as example, not fmt

"go tool fmt" doesn't work, "go tool vet" does.

R=golang-dev, rogpeppe, r, minux.ma, bradfitz
CC=golang-dev
https://golang.org/cl/5900049
parent 4074795e
...@@ -19,10 +19,10 @@ with arguments appropriate to package-level processing. ...@@ -19,10 +19,10 @@ with arguments appropriate to package-level processing.
<p> <p>
The programs can also be run as stand-alone binaries, with unmodified arguments, The programs can also be run as stand-alone binaries, with unmodified arguments,
using the go tool subcommand, such as "go tool fmt". using the go tool subcommand, such as "go tool vet".
This style of invocation allows, for instance, reformatting a single source file rather than This style of invocation allows, for instance, checking a single source file rather than
an entire package: "go tool fmt myprogram.go" as compared to an entire package: "go tool vet myprogram.go" as compared to
"go fmt mypackage". "go vet mypackage".
Some of the commands, such as prof and yacc, are accessible Some of the commands, such as prof and yacc, are accessible
only through the go tool subcommand. only through the go tool subcommand.
</p> </p>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment