Skip to content

Commit 6145194

Browse files
committed
chore: add simple comment for get_enclosing_block
1 parent a85e480 commit 6145194

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clippy_utils/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1304,6 +1304,7 @@ pub fn get_parent_expr_for_hir<'tcx>(cx: &LateContext<'tcx>, hir_id: hir::HirId)
13041304
}
13051305
}
13061306

1307+
/// Gets the enclosing block, if any.
13071308
pub fn get_enclosing_block<'tcx>(cx: &LateContext<'tcx>, hir_id: HirId) -> Option<&'tcx Block<'tcx>> {
13081309
let map = &cx.tcx.hir();
13091310
let enclosing_node = map

0 commit comments

Comments
 (0)