diff options
| author | David Symonds <dsymonds@golang.org> | 2016-10-18 10:43:47 +1100 |
|---|---|---|
| committer | David Symonds <dsymonds@golang.org> | 2016-10-18 00:06:20 +0000 |
| commit | 5a0d50f4eb7e35a57364ed5d2f7b79c0b1a80b36 (patch) | |
| tree | 496eb4f79585be053c902d3a90d79155129e1357 /src | |
| parent | 4a5b3ef9b90b2a724fbe9557b4cb15a65d2be87b (diff) | |
| download | go-5a0d50f4eb7e35a57364ed5d2f7b79c0b1a80b36.tar.xz | |
cmd/vet: fix formatting of headings in doc.go.
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>
Diffstat (limited to 'src')
| -rw-r--r-- | src/cmd/vet/doc.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/cmd/vet/doc.go b/src/cmd/vet/doc.go index 3c3933f590..2baa53099d 100644 --- a/src/cmd/vet/doc.go +++ b/src/cmd/vet/doc.go @@ -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 |
