From 2ddaf7f79a0937ffa9072ede7b696fd084abfe86 Mon Sep 17 00:00:00 2001 From: Alan Donovan Date: Sat, 17 Nov 2018 09:46:52 -0500 Subject: [PATCH] go/analysis: two trivial doc tweaks Change-Id: I9a85d4099550e56dd07dfb6e0f8921e3b3e8bd30 Reviewed-on: https://go-review.googlesource.com/c/150043 Reviewed-by: Brad Fitzpatrick --- go/analysis/passes/composite/composite.go | 2 +- go/analysis/unitchecker/unitchecker.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/go/analysis/passes/composite/composite.go b/go/analysis/passes/composite/composite.go index b7cfe8a95d..9cca7781d0 100644 --- a/go/analysis/passes/composite/composite.go +++ b/go/analysis/passes/composite/composite.go @@ -16,7 +16,7 @@ import ( "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 types imported from another package that do not use the field-keyed diff --git a/go/analysis/unitchecker/unitchecker.go b/go/analysis/unitchecker/unitchecker.go index 7b8fec9db2..59489f92da 100644 --- a/go/analysis/unitchecker/unitchecker.go +++ b/go/analysis/unitchecker/unitchecker.go @@ -95,7 +95,7 @@ func Main(analyzers ...*analysis.Analyzer) { Usage of %[1]s: %.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 `, progname) os.Exit(1)