Commit 318b67cb authored by Rob Pike's avatar Rob Pike

make %v and %p consistent

R=rsc
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=32591
CL=32593
parent d1a3b98a
...@@ -434,7 +434,7 @@ func (p *pp) printField(field reflect.Value) (was_string bool) { ...@@ -434,7 +434,7 @@ func (p *pp) printField(field reflect.Value) (was_string bool) {
break; break;
} }
p.fmt.sharp = !p.fmt.sharp; // turn 0x on by default p.fmt.sharp = !p.fmt.sharp; // turn 0x on by default
s = p.fmt.Fmt_uX64(uint64(v)).Str(); s = p.fmt.Fmt_ux64(uint64(v)).Str();
case reflect.ArrayOrSliceValue: case reflect.ArrayOrSliceValue:
p.addstr("["); p.addstr("[");
for i := 0; i < f.Len(); i++ { for i := 0; i < f.Len(); i++ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment