Skip to content

cmd/gofmt: incorrect comment alignment following a label #5623

@mxk

Description

@mxk
What steps will reproduce the problem?
http://play.golang.org/p/YP1-YXKDXd

What is the expected output?
label:
    mask := uint64(1)<<c - 1           // Allocation mask
    used := atomic.LoadUint64(&h.used) // Current allocations
    ...

What do you see instead?
label:
    mask := uint64(1)<<c - 1 // Allocation mask
    used := atomic.LoadUint64(&h.used) // Current allocations
    ...

Which compiler are you using (5g, 6g, 8g, gccgo)?
6g

Which operating system are you using?
Windows

Which version are you using?  (run 'go version')
go version go1.1 windows/amd64

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions