fix historical editing glitch

R=rsc
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=20871
CL=20873
This commit is contained in:
Rob Pike 2008-12-09 17:43:11 -08:00
parent f5cfadde47
commit 436fcc68e0

View file

@ -552,7 +552,7 @@ func (p *P) doprintf(format string, v reflect.StructValue) {
// pointer // pointer
case 'p': case 'p':
if v, ok := getPtr(field); ok { if v, ok := getPtr(field); ok {
if v == nil { if v == 0 {
s = "<nil>" s = "<nil>"
} else { } else {
s = "0x" + p.fmt.uX64(uint64(v)).str() s = "0x" + p.fmt.uX64(uint64(v)).str()