mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
- 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:
parent
32ea9f51f2
commit
a05a5465c8
3 changed files with 46 additions and 180 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue