-
Notifications
You must be signed in to change notification settings - Fork 18k
go/doc: requires 2 pass for multiline comments with spacing #67020
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Comments
seems to be single pass? https://go.dev/play/p/a1kbFn5Nn0Y |
I am not seeing the behavior you show on go.dev (via format button), via the command line, or through
|
See also, behavior of this issue |
Change https://go.dev/cl/583235 mentions this issue: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Go version
Go 1.22
Output of
go env
in your module/workspace:What did you do?
The file above needs to have
go fmt
run twice on it to be formatted properly. Discovered viago/format
package withformat.Source()
where read in AST comments are improperly formatted after a single pass.What did you see happen?
After the first
go fmt
After the second
go fmt
What did you expect to see?
An idempotent formatter that can format source in one pass.
The text was updated successfully, but these errors were encountered: