From 436fcc68e0efde9ba6f4da4ce8b241187d3f5b48 Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Tue, 9 Dec 2008 17:43:11 -0800 Subject: [PATCH] fix historical editing glitch R=rsc DELTA=1 (0 added, 0 deleted, 1 changed) OCL=20871 CL=20873 --- src/lib/fmt/print.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/fmt/print.go b/src/lib/fmt/print.go index 05e20876424..12da7d69dd1 100644 --- a/src/lib/fmt/print.go +++ b/src/lib/fmt/print.go @@ -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 = "" } else { s = "0x" + p.fmt.uX64(uint64(v)).str()