1
0
mirror of https://github.com/golang/go synced 2024-11-18 12:54:44 -07:00

go.tools/cmd/stringer: fix docs: stringer is not a "go tool"

Documentation change only. The binary will not be installed
using the "go tool" mechanism.

LGTM=gri
R=gri
CC=golang-codereviews
https://golang.org/cl/133710046
This commit is contained in:
Rob Pike 2014-09-09 13:29:38 -07:00
parent 84c740c8b6
commit e548cb3dfe

View File

@ -29,7 +29,7 @@
//
// running this command
//
// go tool stringer -type=Pill
// stringer -type=Pill
//
// in the same directory will create the file pill_string.go, in package painkiller,
// containing a definition of
@ -42,8 +42,7 @@
//
// Typically this process would be run using go generate, like this:
//
// //go:generate go tool stringer -type=Pill
// TODO: do we install this as a tool or as a binary?
// //go:generate stringer -type=Pill
//
// If multiple constants have the same value, the lexically first matching name will
// be used (in the example, Acetaminophen will print as "Paracetamol").