@@ -57,7 +57,7 @@ func (c CallList) Contains(selector, ident string) bool {
5757}
5858
5959// 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.
6161func (c CallList ) ContainsPointer (selector , indent string ) bool {
6262 if strings .HasPrefix (selector , "*" ) {
6363 if c .Contains (selector , indent ) {
@@ -70,7 +70,7 @@ func (c CallList) ContainsPointer(selector, indent string) bool {
7070}
7171
7272// 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
7474func (c CallList ) ContainsPkgCallExpr (n ast.Node , ctx * Context , stripVendor bool ) * ast.CallExpr {
7575 selector , ident , err := GetCallInfo (n , ctx )
7676 if err != nil {
@@ -94,8 +94,8 @@ func (c CallList) ContainsPkgCallExpr(n ast.Node, ctx *Context, stripVendor bool
9494 return n .(* ast.CallExpr )
9595}
9696
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
9999func (c CallList ) ContainsCallExpr (n ast.Node , ctx * Context ) * ast.CallExpr {
100100 selector , ident , err := GetCallInfo (n , ctx )
101101 if err != nil {
0 commit comments