]> Cypherpunks repositories - gostls13.git/commitdiff
fix historical editing glitch
authorRob Pike <r@golang.org>
Wed, 10 Dec 2008 01:43:11 +0000 (17:43 -0800)
committerRob Pike <r@golang.org>
Wed, 10 Dec 2008 01:43:11 +0000 (17:43 -0800)
R=rsc
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=20871
CL=20873

src/lib/fmt/print.go

index 05e208764240c5fe6e117afb495c88b2a6c9d1cd..12da7d69dd10aaf77d391a6af76e743ae067418b 100644 (file)
@@ -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()