Rollup merge of #78942 - eltociear:patch-1, r=jonas-schievink

Fix typo in comment

occurences -> occurrences
This commit is contained in:
Jonas Schievink 2020-11-11 20:59:12 +01:00 committed by GitHub
commit f311458e42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3089,7 +3089,7 @@ impl<'tcx> Visitor<'tcx> for IterFunctionVisitor {
}
}
/// Detect the occurences of calls to `iter` or `into_iter` for the
/// Detect the occurrences of calls to `iter` or `into_iter` for the
/// given identifier
fn detect_iter_and_into_iters<'tcx>(block: &'tcx Block<'tcx>, identifier: Ident) -> Option<Vec<IterFunction>> {
let mut visitor = IterFunctionVisitor {