Skip to content

cmd/gofmt: unaligned end-of-line comments in switch cases #28057

@rillig

Description

@rillig

What version of Go are you using (go version)?

go version go1.11.1 windows/amd64

Does this issue reproduce with the latest release?

yes.

What did you do?

https://play.golang.org/p/hMeljDlfiZJ

What did you expect to see?

When I click Format, all end-of-line comments should be aligned in the same column.

What did you see instead?

The first comment is not aligned with the other ones.

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions