1
0
mirror of https://github.com/golang/go synced 2024-11-21 14:44:40 -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:
Robert Griesemer 2011-03-10 16:00:39 -08:00
parent f1fee448bc
commit 2e8b375e0e

View File

@ -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("}")