Fix typo in comment

occurences -> occurrences
This commit is contained in:
Ikko Ashimine 2020-11-11 20:23:08 +09:00 committed by GitHub
parent 6294300b8e
commit f92f8d095d

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 /// given identifier
fn detect_iter_and_into_iters<'tcx>(block: &'tcx Block<'tcx>, identifier: Ident) -> Option<Vec<IterFunction>> { fn detect_iter_and_into_iters<'tcx>(block: &'tcx Block<'tcx>, identifier: Ident) -> Option<Vec<IterFunction>> {
let mut visitor = IterFunctionVisitor { let mut visitor = IterFunctionVisitor {