From: Rob Pike Date: Mon, 28 Aug 2017 04:35:33 +0000 (+1000) Subject: fmt: document verbs %b %d %o %x %X for printing pointers X-Git-Tag: go1.10beta1~1341 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=a4140b745ce22c56821750001f30fca4020b4650;p=gostls13.git fmt: document verbs %b %d %o %x %X for printing pointers This has been supported since Go 1 and there's even a test for it. The documentation was missing. Fixes #21409. Change-Id: I5813488f6a98c1b4506c239e968d43344b91be12 Reviewed-on: https://go-review.googlesource.com/59412 Reviewed-by: Ian Lance Taylor --- diff --git a/src/fmt/doc.go b/src/fmt/doc.go index 014ba06948..d1ce8c4177 100644 --- a/src/fmt/doc.go +++ b/src/fmt/doc.go @@ -47,6 +47,8 @@ %X base 16, upper-case, two characters per byte Pointer: %p base 16 notation, with leading 0x + The %b, %d, %o, %x and %X verbs also work with pointers, + formatting the value exactly as if it were an integer. The default format for %v is: bool: %t