Skip to content

Commit

Permalink
Fix typo in comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
m-ou-se committed Jul 8, 2021
1 parent 10d6b34 commit 99b5d2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_typeck/src/check/method/prelude2021.rs
Expand Up @@ -208,7 +208,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
return;
}

// For from_iter, check if the type actualy implements FromIterator.
// For from_iter, check if the type actually implements FromIterator.
// If we know it does not, we don't need to warn.
if method_name.name == sym::from_iter {
if let Some(trait_def_id) = self.tcx.get_diagnostic_item(sym::FromIterator) {
Expand Down

0 comments on commit 99b5d2a

Please sign in to comment.