]> Cypherpunks repositories - gostls13.git/commitdiff
doc/go1.17: clean up formatting of gofmt section
authorBrad Fitzpatrick <bradfitz@golang.org>
Thu, 10 Jun 2021 21:40:58 +0000 (14:40 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Fri, 11 Jun 2021 16:09:15 +0000 (16:09 +0000)
It was the only h3 in <code>, and it lacked <p> around its content.

It looked like it was part of the prior section:

    https://tip.golang.org/doc/go1.17#gofmt

Change-Id: I7e9ef70e9a03474225833f44420aabd70dab3cd5
Reviewed-on: https://go-review.googlesource.com/c/go/+/326774
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Trust: Brad Fitzpatrick <bradfitz@golang.org>

doc/go1.17.html

index 101957aabddb6f86922ebbc98c0d6dc37347a076..4fa38921f01688f85efb026a2cc1bc4c24b99c96 100644 (file)
@@ -293,7 +293,9 @@ Do not send CLs removing the interior tags from such phrases.
   <a href="https://golang.org/design/draft-gobuild">https://golang.org/design/draft-gobuild</a>.
 </p>
 
-<h3 id="gofmt"><code>gofmt</code></h3>
+<h3 id="gofmt">Gofmt</h3>
+
+<p>
   <code>gofmt</code> (and <code>go</code> <code>fmt</code>) now synchronizes
   <code>//go:build</code> lines with <code>// +build</code> lines. If a file
   only has <code>// +build</code> lines, they will be moved to the appropriate
@@ -301,7 +303,7 @@ Do not send CLs removing the interior tags from such phrases.
   added. Otherwise, <code>// +build</code> lines will be overwritten based on
   any existing <code>//go:build</code> lines. For more information, see
   <a href="https://golang.org/design/draft-gobuild">https://golang.org/design/draft-gobuild</a>.
-</h3>
+</p>
 
 <h3 id="vet">Vet</h3>