clear flags so that %+v does not pass the +
to the first field it prints.
R=r
DELTA=2 (1 added, 0 deleted, 1 changed)
OCL=21324
CL=21328
diff --git a/src/lib/fmt/print.go b/src/lib/fmt/print.go
index 9ac241f..426bca1 100644
--- a/src/lib/fmt/print.go
+++ b/src/lib/fmt/print.go
@@ -386,7 +386,8 @@
p.add('{');
v := field.(reflect.StructValue);
t := v.Type().(reflect.StructType);
- donames := p.fmt.plus; // first p.printField clears flag
+ donames := p.fmt.plus;
+ p.fmt.clearflags(); // clear flags for p.printField
for i := 0; i < v.Len(); i++ {
if i > 0 {
p.add(' ')