This commit is contained in:
Li Zuwei 2018-09-21 04:37:12 +00:00 committed by GitHub
commit 89cb222584
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -169,7 +169,7 @@ func (f *formatState) formatPtr(v reflect.Value) {
}
// Display pointer information depending on flags.
if f.fs.Flag('+') && (len(pointerChain) > 0) {
if f.fs.Flag('+') && !f.cs.DisablePointerAddresses && (len(pointerChain) > 0) {
f.fs.Write(openParenBytes)
for i, addr := range pointerChain {
if i > 0 {