File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -413,7 +413,7 @@ pub struct ScopeTree {
413
413
414
414
/// The number of visit_expr and visit_pat calls done in the body.
415
415
/// Used to sanity check visit_expr/visit_pat call count when
416
- /// calculating geneartor interiors.
416
+ /// calculating generator interiors.
417
417
body_expr_count : FxHashMap < hir:: BodyId , usize > ,
418
418
}
419
419
@@ -785,7 +785,7 @@ impl<'tcx> ScopeTree {
785
785
786
786
/// Gives the number of expressions visited in a body.
787
787
/// Used to sanity check visit_expr call count when
788
- /// calculating geneartor interiors.
788
+ /// calculating generator interiors.
789
789
pub fn body_expr_count ( & self , body_id : hir:: BodyId ) -> Option < usize > {
790
790
self . body_expr_count . get ( & body_id) . map ( |r| * r)
791
791
}
You can’t perform that action at this time.
0 commit comments