mirror of
https://github.com/golang/go
synced 2024-11-26 07:07:57 -07:00
fix historical editing glitch
R=rsc DELTA=1 (0 added, 0 deleted, 1 changed) OCL=20871 CL=20873
This commit is contained in:
parent
f5cfadde47
commit
436fcc68e0
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user