mirror of
https://github.com/golang/go
synced 2024-11-21 19:24:45 -07:00
go/ast: fix printing of maps
Print a newline after each map entry; similar to the style used for slices and structs. R=r, r2 CC=golang-dev https://golang.org/cl/4274042
This commit is contained in:
parent
f1fee448bc
commit
2e8b375e0e
@ -158,6 +158,7 @@ func (p *printer) print(x reflect.Value) {
|
||||
p.print(key)
|
||||
p.printf(": ")
|
||||
p.print(v.Elem(key))
|
||||
p.printf("\n")
|
||||
}
|
||||
p.indent--
|
||||
p.printf("}")
|
||||
|
Loading…
Reference in New Issue
Block a user