Commit b8620afb authored by mewmew's avatar mewmew Committed by Rob Pike

fmt: document the behaviour of %p on slices

Fixes #23291.

Change-Id: I9bb3b8246968693871d4800e2cdb2c8390f4b6a6
GitHub-Last-Rev: bc3444206764016b730d770a8c71a49c214ae824
GitHub-Pull-Request: golang/go#24600
Reviewed-on: https://go-review.googlesource.com/103516Reviewed-by: 's avatarRob Pike <r@golang.org>
parent 72b0fb51
......@@ -45,6 +45,8 @@
%q a double-quoted string safely escaped with Go syntax
%x base 16, lower-case, two characters per byte
%X base 16, upper-case, two characters per byte
Slice:
%p address of 0th element in base 16 notation, with leading 0x
Pointer:
%p base 16 notation, with leading 0x
The %b, %d, %o, %x and %X verbs also work with pointers,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment