- application of gofmt with one-line composite literal structs enabled

- this CL is dependent on CL 1025008

R=r, rsc
http://go/go-review/1025009
This commit is contained in:
Robert Griesemer 2009-11-06 16:33:53 -08:00
parent 32ea9f51f2
commit a05a5465c8
3 changed files with 46 additions and 180 deletions

View file

@ -1204,9 +1204,7 @@ func newValue(typ Type, addr addr, canSet bool) Value {
// All values have same memory layout;
// build once and convert.
v := &struct {
value;
}{value{typ, addr, canSet}};
v := &struct{ value }{value{typ, addr, canSet}};
switch typ.(type) {
case *ArrayType:
// TODO(rsc): Something must prevent