-
-
Notifications
You must be signed in to change notification settings - Fork 120
Closed
Labels
good first issueGood for newcomersGood for newcomers
Milestone
Description
Composite literals have blank lines removed, but it seems to treat the trailing */
of a multi-line comment as a blank line.
If we add the following testcase to composite-literals-leading-lines
var _ = map[string]string{
/*
*/
"foo": "bar",
}
formatting produces:
var _ = map[string]string{
/*
*/ "foo": "bar",
}
This seems like an unintended consequence of f2d9f32
Also, this creates a conflict with gofmt v0.1.7 which wants (removed blank space):
var _ = map[string]string{
/*
*/"foo": "bar",
}
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomers