@@ -57,7 +57,7 @@ func (c CallList) Contains(selector, ident string) bool {
57
57
}
58
58
59
59
// ContainsPointer returns true if a pointer to the selector type or the type
60
- // itslef is a members of this call list.
60
+ // itself is a members of this call list.
61
61
func (c CallList ) ContainsPointer (selector , indent string ) bool {
62
62
if strings .HasPrefix (selector , "*" ) {
63
63
if c .Contains (selector , indent ) {
@@ -70,7 +70,7 @@ func (c CallList) ContainsPointer(selector, indent string) bool {
70
70
}
71
71
72
72
// ContainsPkgCallExpr resolves the call expression name and type, and then further looks
73
- // up the package path for that type. Finally, it determines if the call exists within the CallList
73
+ // up the package path for that type. Finally, it determines if the call exists within the call list
74
74
func (c CallList ) ContainsPkgCallExpr (n ast.Node , ctx * Context , stripVendor bool ) * ast.CallExpr {
75
75
selector , ident , err := GetCallInfo (n , ctx )
76
76
if err != nil {
@@ -94,8 +94,8 @@ func (c CallList) ContainsPkgCallExpr(n ast.Node, ctx *Context, stripVendor bool
94
94
return n .(* ast.CallExpr )
95
95
}
96
96
97
- // ContainsCallExpr resolves the call experssion name and type, and then determines
98
- // if the call existis with the call list
97
+ // ContainsCallExpr resolves the call expression name and type, and then determines
98
+ // if the call exists with the call list
99
99
func (c CallList ) ContainsCallExpr (n ast.Node , ctx * Context ) * ast.CallExpr {
100
100
selector , ident , err := GetCallInfo (n , ctx )
101
101
if err != nil {
0 commit comments