From bc3444206764016b730d770a8c71a49c214ae824 Mon Sep 17 00:00:00 2001 From: mewmew Date: Fri, 30 Mar 2018 01:01:38 +0200 Subject: [PATCH] fmt: rephrase the behaviour of %p on slices --- src/fmt/doc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fmt/doc.go b/src/fmt/doc.go index 065fdba7f0..f3f2023dc2 100644 --- a/src/fmt/doc.go +++ b/src/fmt/doc.go @@ -46,7 +46,7 @@ %x base 16, lower-case, two characters per byte %X base 16, upper-case, two characters per byte Slice: - %p pointer to the first element of the slice in base 16 notation, with leading 0x + %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,