mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue