Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

go/printer: spacing in /* comment not idempotent #1835

Closed
rsc opened this issue May 16, 2011 · 5 comments
Closed

go/printer: spacing in /* comment not idempotent #1835

rsc opened this issue May 16, 2011 · 5 comments
Milestone

Comments

@rsc
Copy link
Contributor

rsc commented May 16, 2011

mini=; cat fmt1.go
package main

func main() {
/*
prints test 5 times
*/
    for i := 0; i < 5; i++ {
        println("test")
    }
}

mini=; cat fmt1.go | gofmt
package main

func main() {
    /*
    prints test 5 times
    */
    for i := 0; i < 5; i++ {
        println("test")
    }
}
mini=; cat fmt1.go | gofmt | gofmt
package main

func main() {
    /*
        prints test 5 times
    */
    for i := 0; i < 5; i++ {
        println("test")
    }
}
mini=; 

It does stabilize at that point.

Pointed out on golang-nuts by Mustafa Zengin <mzengin88@gmail.com>
@rsc
Copy link
Contributor Author

rsc commented Jul 25, 2011

Comment 1:

Owner changed to @griesemer.

@rsc
Copy link
Contributor Author

rsc commented Dec 9, 2011

Comment 2:

Labels changed: added priority-later.

@rogpeppe
Copy link
Contributor

rogpeppe commented May 2, 2012

Comment 4:

Issue #3584 has been merged into this issue.

@rsc
Copy link
Contributor Author

rsc commented Sep 12, 2012

Comment 5:

Labels changed: added go1.1.

@griesemer
Copy link
Contributor

Comment 6:

This issue was closed by revision 241b236.

Status changed to Fixed.

@rsc rsc added fixed labels Oct 10, 2012
@rsc rsc added this to the Go1.1 milestone Apr 14, 2015
@rsc rsc removed the go1.1 label Apr 14, 2015
@golang golang locked and limited conversation to collaborators Jun 24, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants