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
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
cmd/gofmt: unexpected comment indentation #22408
Although I was expecting it to be:
To clarify: gofmt handled comments like this from day one and it is by design: A "column" of things (comments in this case) ends whenever the thing in question is missing on a new line. There are other mechanisms that end a column (e.g. indentation of a block), but if you want the comment column to continue, you need to add an (empty) comment where there's none in this case.
I can see that aligning all comments in this case looks nicer.