mirror of
https://github.com/golang/go
synced 2024-11-22 20:40:03 -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.
|
||||
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 (
|
||||
fileSet = token.NewFileSet() // per process FileSet
|
||||
exitCode = 0
|
||||
|
Loading…
Reference in New Issue
Block a user