diff --git a/src/librustc/middle/region.rs b/src/librustc/middle/region.rs index 59c9e8b4c432c..b909ee9f93bcd 100644 --- a/src/librustc/middle/region.rs +++ b/src/librustc/middle/region.rs @@ -413,7 +413,7 @@ pub struct ScopeTree { /// The number of visit_expr and visit_pat calls done in the body. /// Used to sanity check visit_expr/visit_pat call count when - /// calculating geneartor interiors. + /// calculating generator interiors. body_expr_count: FxHashMap, } @@ -785,7 +785,7 @@ impl<'tcx> ScopeTree { /// Gives the number of expressions visited in a body. /// Used to sanity check visit_expr call count when - /// calculating geneartor interiors. + /// calculating generator interiors. pub fn body_expr_count(&self, body_id: hir::BodyId) -> Option { self.body_expr_count.get(&body_id).map(|r| *r) }