From e548cb3dfea0bc39e43e2f702259027f60328f10 Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Tue, 9 Sep 2014 13:29:38 -0700 Subject: [PATCH] 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 --- cmd/stringer/stringer.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cmd/stringer/stringer.go b/cmd/stringer/stringer.go index adc96343..bc3af184 100644 --- a/cmd/stringer/stringer.go +++ b/cmd/stringer/stringer.go @@ -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").