diff options
author | Teddy Wing | 2023-05-16 21:44:28 +0200 |
---|---|---|
committer | Teddy Wing | 2023-05-16 21:44:28 +0200 |
commit | ed560db307ce275577b058ed921c2722bacb2468 (patch) | |
tree | 28e254159175bd549a981f9bb7d777d3fb695358 | |
parent | d8e104832a45c6da60a5cada831384fec9558559 (diff) | |
download | gocapturedrefrace-ed560db307ce275577b058ed921c2722bacb2468.tar.bz2 |
checkClosure: Add function doc comment
-rw-r--r-- | gocapturedrefrace.go | 2 |
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, |