Merge pull request #48 from gcmurphy/godoc

Fix typos in godocs
This commit is contained in:
Tim Kelsey 2016-09-06 10:19:33 +01:00 committed by GitHub
commit 7f4bdd5957
2 changed files with 2 additions and 2 deletions

View file

@ -68,7 +68,7 @@ type Analyzer struct {
Stats Metrics `json:"metrics"`
}
// NewAnalyzer buildas a new anaylzer.
// NewAnalyzer builds a new anaylzer.
func NewAnalyzer(conf map[string]interface{}, logger *log.Logger) Analyzer {
if logger == nil {
logger = log.New(os.Stdout, "[gas]", 0)

View file

@ -46,7 +46,7 @@ func MatchCall(n ast.Node, r *regexp.Regexp) *ast.CallExpr {
return nil
}
// MatcMatchCompLit hCall will match an ast.CompositeLit if its string value obays the given regex.
// MatchCompLit will match an ast.CompositeLit if its string value obays the given regex.
func MatchCompLit(n ast.Node, r *regexp.Regexp) *ast.CompositeLit {
t := reflect.TypeOf(&ast.CompositeLit{})
if name, ok := selectName(n, t); ok && r.MatchString(name) {