]> Cypherpunks repositories - gostls13.git/commitdiff
doc: add missing paragraph break in Effective Go
authorRob Pike <r@golang.org>
Thu, 7 Mar 2019 04:05:43 +0000 (15:05 +1100)
committerRob Pike <r@golang.org>
Thu, 7 Mar 2019 04:46:03 +0000 (04:46 +0000)
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 <bradfitz@golang.org>
doc/effective_go.html

index b98235931c30ac29e3531e44952040d796c304a6..7bb60a0786542758bf406a374592045b809b26b7 100644 (file)
@@ -1687,6 +1687,8 @@ map[CST:-21600 EST:-18000 MST:-25200 PST:-28800 UTC:0]
 </pre>
 <p>
 For maps, <code>Printf</code> and friends sort the output lexicographically by key.
+</p>
+<p>
 When printing a struct, the modified format <code>%+v</code> annotates the
 fields of the structure with their names, and for any value the alternate
 format <code>%#v</code> prints the value in full Go syntax.