From d05a2416a274cdce8f5f44e4d6d0e5debce3dd52 Mon Sep 17 00:00:00 2001 From: Grant Murphy Date: Sun, 28 Aug 2016 11:44:14 -0700 Subject: [PATCH] MatcMatchCompLit should be MatchCompList --- core/helpers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {