Skip to content

cmd/gofmt: incorrect alignment for func prototype parameters comments #42633

@mkrasuski

Description

@mkrasuski

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

1.15.5

Does this issue reproduce with the latest release?

What operating system and processor architecture are you using (go env)?

go env Output
$ go env

What did you do?

just saved file in VSCode - gofmt runs then

What did you expect to see?

func NewHandler(
	fieldName string,   // field to check
	stringValue string, // value to check
	schema Schema,      // source of fields
) *Handler {

What did you see instead?

func NewHandler(
	fieldName string, // field to check
	stringValue string, // value to check
	schema Schema, // source of fields
) *Handler {

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