From 0bce1770b50fa06368b4f921283034f40833b752 Mon Sep 17 00:00:00 2001 From: Grant Murphy Date: Sun, 28 Aug 2016 11:22:08 -0700 Subject: [PATCH] Fix typos in godocs --- core/analyzer.go | 2 +- core/helpers.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/analyzer.go b/core/analyzer.go index 5a274ff..ceb3621 100644 --- a/core/analyzer.go +++ b/core/analyzer.go @@ -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) diff --git a/core/helpers.go b/core/helpers.go index 71e5d99..095f7bf 100644 --- a/core/helpers.go +++ b/core/helpers.go @@ -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. +// MatcMatchCompLit 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) {