]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/vet: fix formatting of headings in doc.go.
authorDavid Symonds <dsymonds@golang.org>
Mon, 17 Oct 2016 23:43:47 +0000 (10:43 +1100)
committerDavid Symonds <dsymonds@golang.org>
Tue, 18 Oct 2016 00:06:20 +0000 (00:06 +0000)
This will cause godoc to correctly render these docs,
since go/doc.ToHTML requires no punctuation for headings.

Change-Id: Ic95245147d3585f2ccc59d4424fcab17d2a5617b
Reviewed-on: https://go-review.googlesource.com/31319
Reviewed-by: Rob Pike <r@golang.org>
src/cmd/vet/doc.go

index 3c3933f59078da81dc1997a429628e8c02daa92b..2baa53099d6c74f63b8b024fa35cc8dce6a599aa 100644 (file)
@@ -84,14 +84,14 @@ Flag: -copylocks
 
 Locks that are erroneously passed by value.
 
-Tests, benchmarks and documentation examples
+Tests and documentation examples
 
 Flag: -tests
 
 Mistakes involving tests including functions with incorrect names or signatures
 and example tests that document identifiers not in the package.
 
-Failure to call the cancelation function returned by context.WithCancel.
+Failure to call the cancelation function returned by WithCancel
 
 Flag: -lostcancel
 
@@ -137,8 +137,6 @@ complains about arguments that look like format descriptor strings.
 It also checks for errors such as using a Writer as the first argument of
 Printf.
 
-Struct tags
-
 Range loop variables
 
 Flag: -rangeloops