Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/gofmt: comment in return params is misplaced #28433
What version of Go are you using (
Seems to be a combination of problems here. I don't think this is related to #22631, this seems more an issue of not having all position information in the AST, and the fact that we don't print unnecessary ()'s around single, unnamed results.
Should be fixed at some point but there's no urgency. Also, independently, not a great place to put a comment in the first place (but that's just my personal taste).