cmd/gofmt: inconsistent indentation for comments inside switch-case #30327
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Commented out the last case of switch with line or block comment(s).
https://play.golang.org/p/fkseigRrxYV
What did you expect to see?
The last case(s) to be in their place and not go inside the scope of the previous case.
What did you see instead?
The last case(s) is aligned as if it is inside the scope of the previous case.
The text was updated successfully, but these errors were encountered: