You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
}
-----
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: