From 17df5b3702448a88cab19e4452cdaf7bdb6e6d8e Mon Sep 17 00:00:00 2001 From: Cosmin Cojocar Date: Tue, 28 Jan 2020 15:19:54 +0100 Subject: [PATCH] Fix typos Signed-off-by: Cosmin Cojocar --- call_list.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/call_list.go b/call_list.go index f22c737..115c6c8 100644 --- a/call_list.go +++ b/call_list.go @@ -57,7 +57,7 @@ func (c CallList) Contains(selector, ident string) bool { } // ContainsPointer returns true if a pointer to the selector type or the type -// itslef is a members of this call list. +// itself is a members of this call list. func (c CallList) ContainsPointer(selector, indent string) bool { if strings.HasPrefix(selector, "*") { if c.Contains(selector, indent) { @@ -70,7 +70,7 @@ func (c CallList) ContainsPointer(selector, indent string) bool { } // ContainsPkgCallExpr resolves the call expression name and type, and then further looks -// up the package path for that type. Finally, it determines if the call exists within the CallList +// up the package path for that type. Finally, it determines if the call exists within the call list func (c CallList) ContainsPkgCallExpr(n ast.Node, ctx *Context, stripVendor bool) *ast.CallExpr { selector, ident, err := GetCallInfo(n, ctx) if err != nil { @@ -94,8 +94,8 @@ func (c CallList) ContainsPkgCallExpr(n ast.Node, ctx *Context, stripVendor bool return n.(*ast.CallExpr) } -// ContainsCallExpr resolves the call experssion name and type, and then determines -// if the call existis with the call list +// ContainsCallExpr resolves the call expression name and type, and then determines +// if the call exists with the call list func (c CallList) ContainsCallExpr(n ast.Node, ctx *Context) *ast.CallExpr { selector, ident, err := GetCallInfo(n, ctx) if err != nil {