Skip to content

Commit bc34442

Browse files
committed
fmt: rephrase the behaviour of %p on slices
1 parent 3f3ec2d commit bc34442

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fmt/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
%x base 16, lower-case, two characters per byte
4747
%X base 16, upper-case, two characters per byte
4848
Slice:
49-
%p pointer to the first element of the slice in base 16 notation, with leading 0x
49+
%p address of 0th element in base 16 notation, with leading 0x
5050
Pointer:
5151
%p base 16 notation, with leading 0x
5252
The %b, %d, %o, %x and %X verbs also work with pointers,

0 commit comments

Comments
 (0)