aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2023-05-16 21:44:28 +0200
committerTeddy Wing2023-05-16 21:44:28 +0200
commited560db307ce275577b058ed921c2722bacb2468 (patch)
tree28e254159175bd549a981f9bb7d777d3fb695358
parentd8e104832a45c6da60a5cada831384fec9558559 (diff)
downloadgocapturedrefrace-ed560db307ce275577b058ed921c2722bacb2468.tar.bz2
checkClosure: Add function doc comment
-rw-r--r--gocapturedrefrace.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/gocapturedrefrace.go b/gocapturedrefrace.go
index a28c47b..1a60cf5 100644
--- a/gocapturedrefrace.go
+++ b/gocapturedrefrace.go
@@ -58,6 +58,8 @@ func run(pass *analysis.Pass) (interface{}, error) {
return nil, nil
}
+// checkClosure reports variables used in funcLit that are captured from an
+// outer scope.
func checkClosure(
pass *analysis.Pass,
funcLit *ast.FuncLit,