diff --git a/core/helpers.go b/core/helpers.go index 095f7bf..f5bcd44 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 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) {