mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00: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
1 changed files with 4 additions and 4 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue