Commit 436fcc68 authored by Rob Pike's avatar Rob Pike

fix historical editing glitch

R=rsc
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=20871
CL=20873
parent f5cfadde
......@@ -552,7 +552,7 @@ func (p *P) doprintf(format string, v reflect.StructValue) {
// pointer
case 'p':
if v, ok := getPtr(field); ok {
if v == nil {
if v == 0 {
s = "<nil>"
} else {
s = "0x" + p.fmt.uX64(uint64(v)).str()
......
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