Skip to content

Commit a4af930

Browse files
committed
Auto merge of #44955 - laumann:small-typo-fix, r=steveklabnik
Fix typo: geneartor -> generator
2 parents f1b5225 + 30b19c9 commit a4af930

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc/middle/region.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ pub struct ScopeTree {
413413

414414
/// The number of visit_expr and visit_pat calls done in the body.
415415
/// Used to sanity check visit_expr/visit_pat call count when
416-
/// calculating geneartor interiors.
416+
/// calculating generator interiors.
417417
body_expr_count: FxHashMap<hir::BodyId, usize>,
418418
}
419419

@@ -785,7 +785,7 @@ impl<'tcx> ScopeTree {
785785

786786
/// Gives the number of expressions visited in a body.
787787
/// Used to sanity check visit_expr call count when
788-
/// calculating geneartor interiors.
788+
/// calculating generator interiors.
789789
pub fn body_expr_count(&self, body_id: hir::BodyId) -> Option<usize> {
790790
self.body_expr_count.get(&body_id).map(|r| *r)
791791
}

0 commit comments

Comments
 (0)