Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
Signed-off-by: Cosmin Cojocar <[email protected]>
  • Loading branch information
ccojocar authored and Cosmin Cojocar committed Jan 29, 2020
1 parent 3e069e7 commit 17df5b3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions call_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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 {
Expand All @@ -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 {
Expand Down

0 comments on commit 17df5b3

Please sign in to comment.