fix typo in ContainsPkgCallExpr comment (#545)

This commit is contained in:
Ethan Buchman 2020-12-01 03:28:38 -05:00 committed by GitHub
parent 208b73eec4
commit 984c1d39a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -70,7 +70,7 @@ func (c CallList) ContainsPointer(selector, indent string) bool {
} }
// ContainsPkgCallExpr resolves the call expression name and type, and then further looks // 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 call list // 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 { func (c CallList) ContainsPkgCallExpr(n ast.Node, ctx *Context, stripVendor bool) *ast.CallExpr {
selector, ident, err := GetCallInfo(n, ctx) selector, ident, err := GetCallInfo(n, ctx)
if err != nil { if err != nil {