From fd19bc64de61e33537b90a7d7ed489fd83412ced Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Thu, 7 Mar 2019 15:05:43 +1100 Subject: [PATCH] doc: add missing paragraph break in Effective Go A recent edit broke the flow; add a paragraph break when the subject switches from maps to structs. No changes in wording. Change-Id: I5df88ec36b9d81931cfdbc684424440d01ac06d1 Reviewed-on: https://go-review.googlesource.com/c/go/+/165917 Reviewed-by: Brad Fitzpatrick --- doc/effective_go.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/effective_go.html b/doc/effective_go.html index b98235931c..7bb60a0786 100644 --- a/doc/effective_go.html +++ b/doc/effective_go.html @@ -1687,6 +1687,8 @@ map[CST:-21600 EST:-18000 MST:-25200 PST:-28800 UTC:0]

For maps, Printf and friends sort the output lexicographically by key. +

+

When printing a struct, the modified format %+v annotates the fields of the structure with their names, and for any value the alternate format %#v prints the value in full Go syntax. -- 2.50.0