mirror of
https://github.com/golang/go.git
synced 2025-05-05 15:43:04 +00: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:
parent
b1e2c8edce
commit
aa644d2adf
@ -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 (
|
||||
|
Loading…
x
Reference in New Issue
Block a user