mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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:
parent
36ea8bb7bf
commit
f44fa9b4c7
72 changed files with 1870 additions and 1836 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue