@@ -631,7 +631,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
631
631
}
632
632
633
633
// FIXME: We make sure that this is a normal top-level binding,
634
- // but we could suggest `todo!()` for all uninitalized bindings in the pattern pattern
634
+ // but we could suggest `todo!()` for all uninitialized bindings in the pattern pattern
635
635
if let hir:: StmtKind :: Let ( hir:: LetStmt { span, ty, init : None , pat, .. } ) =
636
636
& ex. kind
637
637
&& let hir:: PatKind :: Binding ( ..) = pat. kind
@@ -759,7 +759,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
759
759
true
760
760
}
761
761
762
- /// In a move error that occurs on a call wihtin a loop, we try to identify cases where cloning
762
+ /// In a move error that occurs on a call within a loop, we try to identify cases where cloning
763
763
/// the value would lead to a logic error. We infer these cases by seeing if the moved value is
764
764
/// part of the logic to break the loop, either through an explicit `break` or if the expression
765
765
/// is part of a `while let`.
@@ -960,7 +960,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
960
960
{
961
961
// FIXME: We could check that the call's *parent* takes `&mut val` to make the
962
962
// suggestion more targeted to the `mk_iter(val).next()` case. Maybe do that only to
963
- // check for wheter to suggest `let value` or `let mut value`.
963
+ // check for whether to suggest `let value` or `let mut value`.
964
964
965
965
let span = in_loop. span ;
966
966
if !finder. found_breaks . is_empty ( )
0 commit comments