]> Cypherpunks repositories - gostls13.git/commitdiff
doc/reference-cmd: use vet as example, not fmt
authorRob Pike <r@golang.org>
Sun, 25 Mar 2012 00:35:16 +0000 (11:35 +1100)
committerRob Pike <r@golang.org>
Sun, 25 Mar 2012 00:35:16 +0000 (11:35 +1100)
"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

doc/reference-cmd.html

index 8a9529d17a45325a4e00d0186c7baaaf52893107..442df0846b04b49b24288d0dcb89bcb7005d7d5a 100644 (file)
@@ -19,10 +19,10 @@ with arguments appropriate to package-level processing.
 
 <p>
 The programs can also be run as stand-alone binaries, with unmodified arguments,
-using the go tool subcommand, such as "go tool fmt".
-This style of invocation allows, for instance, reformatting a single source file rather than
-an entire package: "go tool fmt myprogram.go" as compared to
-"go fmt mypackage".
+using the go tool subcommand, such as "go tool vet".
+This style of invocation allows, for instance, checking a single source file rather than
+an entire package: "go tool vet myprogram.go" as compared to
+"go vet mypackage".
 Some of the commands, such as prof and yacc, are accessible
 only through the go tool subcommand.
 </p>