Skip to content

Commit e2dc6dd

Browse files
committed
doc/go1.17: clean up formatting of gofmt section
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 <[email protected]> Trust: Brad Fitzpatrick <[email protected]>
1 parent 2f11284 commit e2dc6dd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

doc/go1.17.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,15 +293,17 @@ <h4 id="build-lines"><code>//go:build</code> lines</h4>
293293
<a href="https://golang.org/design/draft-gobuild">https://golang.org/design/draft-gobuild</a>.
294294
</p>
295295

296-
<h3 id="gofmt"><code>gofmt</code></h3>
296+
<h3 id="gofmt">Gofmt</h3>
297+
298+
<p>
297299
<code>gofmt</code> (and <code>go</code> <code>fmt</code>) now synchronizes
298300
<code>//go:build</code> lines with <code>// +build</code> lines. If a file
299301
only has <code>// +build</code> lines, they will be moved to the appropriate
300302
location in the file, and matching <code>//go:build</code> lines will be
301303
added. Otherwise, <code>// +build</code> lines will be overwritten based on
302304
any existing <code>//go:build</code> lines. For more information, see
303305
<a href="https://golang.org/design/draft-gobuild">https://golang.org/design/draft-gobuild</a>.
304-
</h3>
306+
</p>
305307

306308
<h3 id="vet">Vet</h3>
307309

0 commit comments

Comments
 (0)