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: odd layout of multiple return values that span lines #1207

Closed
dsymonds opened this issue Oct 16, 2010 · 4 comments
Closed

go/printer: odd layout of multiple return values that span lines #1207

dsymonds opened this issue Oct 16, 2010 · 4 comments

Comments

@dsymonds
Copy link
Contributor

The last line of the first function looks odd, and the second function
looks even more odd. I'd prefer to have the values snuggled, but I
don't know if it would be an easy fix to gofmt.

-----
package foo

import "os"

type T struct {
       X, Y int
}

func F() (*T, os.Error) {
       return &T{
               X: 1,
               Y: 2,
       },
               nil
}

func G() (*T, *T, os.Error) {
       return &T{
               X: 1,
               Y: 2,
       },
               &T{
                       X: 3,
                       Y: 4,
               },
               nil
}
-----
@adg
Copy link
Contributor

adg commented Oct 18, 2010

Comment 1:

Owner changed to g...@golang.org.

Status changed to Accepted.

@bradfitz
Copy link
Contributor

bradfitz commented May 3, 2011

Comment 2:

Re-verified this is still the case.

@rsc
Copy link
Contributor

rsc commented Dec 9, 2011

Comment 3:

Labels changed: added priority-later.

@griesemer
Copy link
Contributor

Comment 5:

This issue was closed by revision 49d2d98.

Status changed to Fixed.

@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

6 participants