Skip to content

Commit

Permalink
Rollup merge of #78942 - eltociear:patch-1, r=jonas-schievink
Browse files Browse the repository at this point in the history
Fix typo in comment

occurences -> occurrences
  • Loading branch information
jonas-schievink committed Nov 11, 2020
2 parents 1acb5bb + 1854425 commit 496ee33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/clippy/clippy_lints/src/loops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 496ee33

Please sign in to comment.