cmd/gofmt: Invalid go fmt
comment formatting after unicode string
#73105
Labels
BugReport
Issues describing a possible bug in the Go implementation.
Go version
go version go1.24.1 darwin/arm64
Output of
go env
in your module/workspace:What did you do?
Create a simple file with comments after unicode strings:
tmp.go
Now run:
go fmt tmp.go
What did you see happen?
The output is aligned incorrectly:
What did you expect to see?
The output should format the comments to properly align, such as:
The text was updated successfully, but these errors were encountered: