Skip to content

Commit 5edab39

Browse files
committed
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 <[email protected]> Run-TryBot: Robert Findley <[email protected]> TryBot-Result: Go Bot <[email protected]> Reviewed-by: Robert Griesemer <[email protected]>
1 parent 4892311 commit 5edab39

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/cmd/gofmt/gofmt.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@ const (
5151
//
5252
// This value is defined in go/printer specifically for go/format and cmd/gofmt.
5353
printerNormalizeNumbers = 1 << 30
54-
55-
// parseTypeParams tells go/parser to parse type parameters. Must be kept in
56-
// sync with go/parser/interface.go.
57-
parseTypeParams parser.Mode = 1 << 30
5854
)
5955

56+
// parseTypeParams tells go/parser to parse type parameters. Must be kept in
57+
// sync with go/parser/interface.go.
58+
const parseTypeParams parser.Mode = 1 << 30
59+
6060
var (
6161
fileSet = token.NewFileSet() // per process FileSet
6262
exitCode = 0

0 commit comments

Comments
 (0)