You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This changes the meaning of the comment, as it seems to apply to the preceding argument.
This problem also applies to commas in slice literals and comments. I have not checked the behavior with other grammar constructs that have commas.
What did you expect to see?
The comment should respect the position relative to the comma. Otherwise, one has to introduce an unnecessary line break to force the comment from not being moved to the wrong place.
The text was updated successfully, but these errors were encountered:
Go version
HEAD
Output of
go env
in your module/workspace:What did you do?
Write some code like:
Then run
go fmt
What did you see happen?
The code gets re-formatted to:
CleanShot.2024-06-26.at.18.12.00.mp4
This changes the meaning of the comment, as it seems to apply to the preceding argument.
This problem also applies to commas in slice literals and comments. I have not checked the behavior with other grammar constructs that have commas.
What did you expect to see?
The comment should respect the position relative to the comma. Otherwise, one has to introduce an unnecessary line break to force the comment from not being moved to the wrong place.
The text was updated successfully, but these errors were encountered: