gofmt: experiment: align values in map composites where possible

- gofmt -w src misc
- looking for feedback

R=rsc, r
CC=golang-dev
https://golang.org/cl/223076
This commit is contained in:
Robert Griesemer 2010-03-02 13:46:51 -08:00
parent 36ea8bb7bf
commit f44fa9b4c7
72 changed files with 1870 additions and 1836 deletions

View file

@ -611,8 +611,8 @@ func (v *SliceValue) Elem(i int) Value {
func MakeSlice(typ *SliceType, len, cap int) *SliceValue {
s := &SliceHeader{
Data: uintptr(unsafe.NewArray(typ.Elem(), cap)),
Len: len,
Cap: cap,
Len: len,
Cap: cap,
}
return newValue(typ, addr(s), true).(*SliceValue)
}