Skip to content

Commit

Permalink
Rollup merge of rust-lang#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 authored Nov 11, 2020
2 parents 904b658 + 1854425 commit f311458
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 f311458

Please sign in to comment.