mirror of
https://github.com/golang/go
synced 2024-11-26 22:51:23 -07:00
cmd/gofmt: fix const association to avoid inaccurate comment
The const parseTypeParams was grouped with printer-related consts in gofmt.go, implicitly suggesting that it must be kept in sync with go/format/format.go. Change-Id: Ia65dc15c27fef2c389f963071252adee32ec6bd6 Reviewed-on: https://go-review.googlesource.com/c/go/+/300451 Trust: Robert Findley <rfindley@google.com> Run-TryBot: Robert Findley <rfindley@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Robert Griesemer <gri@golang.org>
This commit is contained in:
parent
489231111f
commit
5edab39f49
@ -51,12 +51,12 @@ const (
|
|||||||
//
|
//
|
||||||
// This value is defined in go/printer specifically for go/format and cmd/gofmt.
|
// This value is defined in go/printer specifically for go/format and cmd/gofmt.
|
||||||
printerNormalizeNumbers = 1 << 30
|
printerNormalizeNumbers = 1 << 30
|
||||||
|
|
||||||
// parseTypeParams tells go/parser to parse type parameters. Must be kept in
|
|
||||||
// sync with go/parser/interface.go.
|
|
||||||
parseTypeParams parser.Mode = 1 << 30
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// parseTypeParams tells go/parser to parse type parameters. Must be kept in
|
||||||
|
// sync with go/parser/interface.go.
|
||||||
|
const parseTypeParams parser.Mode = 1 << 30
|
||||||
|
|
||||||
var (
|
var (
|
||||||
fileSet = token.NewFileSet() // per process FileSet
|
fileSet = token.NewFileSet() // per process FileSet
|
||||||
exitCode = 0
|
exitCode = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user