1
0
mirror of https://github.com/golang/go synced 2024-09-30 14:28:33 -06:00

x/tools/cmd/stringer: document -linecomment in the GoDoc

Fixes golang/go#29867
Change-Id: I0328a97c9e2ee4b42a0b0d2b9948bf69a6ee3322
Reviewed-on: https://go-review.googlesource.com/c/tools/+/191309
Reviewed-by: Rob Pike <r@golang.org>
This commit is contained in:
Anderson Queiroz 2019-08-23 10:09:32 +01:00 committed by Rob Pike
parent b1e2c8edce
commit aa644d2adf

View File

@ -56,6 +56,12 @@
// where t is the lower-cased name of the first type listed. It can be overridden
// with the -output flag.
//
// The -linecomment flag tells stringer to generate the text of any line comment, trimmed
// of leading spaces, instead of the constant name. For instance, if the constants above had a
// Pill prefix, one could write
// PillAspirin // Aspirin
// to suppress it in the output.
package main // import "golang.org/x/tools/cmd/stringer"
import (