mirror of
https://github.com/golang/go
synced 2024-11-18 16:14:46 -07:00
go/analysis: two trivial doc tweaks
Change-Id: I9a85d4099550e56dd07dfb6e0f8921e3b3e8bd30 Reviewed-on: https://go-review.googlesource.com/c/150043 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
e77c06808a
commit
2ddaf7f79a
@ -16,7 +16,7 @@ import (
|
|||||||
"golang.org/x/tools/go/ast/inspector"
|
"golang.org/x/tools/go/ast/inspector"
|
||||||
)
|
)
|
||||||
|
|
||||||
const Doc = `checked for unkeyed composite literals
|
const Doc = `check for unkeyed composite literals
|
||||||
|
|
||||||
This analyzer reports a diagnostic for composite literals of struct
|
This analyzer reports a diagnostic for composite literals of struct
|
||||||
types imported from another package that do not use the field-keyed
|
types imported from another package that do not use the field-keyed
|
||||||
|
@ -95,7 +95,7 @@ func Main(analyzers ...*analysis.Analyzer) {
|
|||||||
|
|
||||||
Usage of %[1]s:
|
Usage of %[1]s:
|
||||||
%.16[1]s unit.cfg # execute analysis specified by config file
|
%.16[1]s unit.cfg # execute analysis specified by config file
|
||||||
%.16[1]s help # general help
|
%.16[1]s help # general help
|
||||||
%.16[1]s help name # help on specific analyzer and its flags
|
%.16[1]s help name # help on specific analyzer and its flags
|
||||||
`, progname)
|
`, progname)
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
|
Loading…
Reference in New Issue
Block a user