Skip to content

Commit 17df5b3

Browse files
ccojocarCosmin Cojocar
authored and
Cosmin Cojocar
committed
Fix typos
Signed-off-by: Cosmin Cojocar <[email protected]>
1 parent 3e069e7 commit 17df5b3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

call_list.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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.
6161
func (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
7474
func (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
9999
func (c CallList) ContainsCallExpr(n ast.Node, ctx *Context) *ast.CallExpr {
100100
selector, ident, err := GetCallInfo(n, ctx)
101101
if err != nil {

0 commit comments

Comments
 (0)