Skip to content

Commit 2c433d0

Browse files
committed
Fix typos
1 parent 0c7f8b0 commit 2c433d0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler/rustc_borrowck/src/diagnostics/conflict_errors.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
631631
}
632632

633633
// 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
635635
if let hir::StmtKind::Let(hir::LetStmt { span, ty, init: None, pat, .. }) =
636636
&ex.kind
637637
&& let hir::PatKind::Binding(..) = pat.kind
@@ -759,7 +759,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
759759
true
760760
}
761761

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
763763
/// the value would lead to a logic error. We infer these cases by seeing if the moved value is
764764
/// part of the logic to break the loop, either through an explicit `break` or if the expression
765765
/// is part of a `while let`.
@@ -960,7 +960,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
960960
{
961961
// FIXME: We could check that the call's *parent* takes `&mut val` to make the
962962
// 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`.
964964

965965
let span = in_loop.span;
966966
if !finder.found_breaks.is_empty()

0 commit comments

Comments
 (0)