x/tools/gopls/internal/analysis/modernize/cmd/modernize: removes important comment when modernizing code #72727
Labels
gopls
Issues related to the Go language server, gopls.
ToolProposal
Issues describing a requested change to a Go tool or command-line program.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
Go version
go version go1.24.1 linux/amd64
Output of
go env
in your module/workspace:What did you do?
I ran the following command to modernize a Go code base:
What did you see happen?
it modernized code but removed some comment that explained stuff.
ie: on the following code:
it generated the following
diff
:What did you expect to see?
the comment should have been kept:
The text was updated successfully, but these errors were encountered: