diff options
| author | cui fliter <imcusg@gmail.com> | 2023-09-28 16:15:41 +0800 |
|---|---|---|
| committer | cui fliter <imcusg@gmail.com> | 2023-10-04 08:01:11 +0800 |
| commit | f44d116e1f9a513b8730c1629bf17592bcd9784a (patch) | |
| tree | a27e0d5957d1cd330d28382ee3f2f92ee2aca54d /compiler/rustc_borrowck/src/lib.rs | |
| parent | aeaa5c30e5c9041264a2e8314b68ad84c2dc3169 (diff) | |
| download | rust-f44d116e1f9a513b8730c1629bf17592bcd9784a.tar.gz rust-f44d116e1f9a513b8730c1629bf17592bcd9784a.zip | |
Fix misuses of a vs an
Signed-off-by: cui fliter <imcusg@gmail.com>
Diffstat (limited to 'compiler/rustc_borrowck/src/lib.rs')
| -rw-r--r-- | compiler/rustc_borrowck/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_borrowck/src/lib.rs b/compiler/rustc_borrowck/src/lib.rs index 8115c61e89d..1c982a1ce16 100644 --- a/compiler/rustc_borrowck/src/lib.rs +++ b/compiler/rustc_borrowck/src/lib.rs @@ -1966,7 +1966,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> { Reservation(WriteKind::MutableBorrow(BorrowKind::Mut { kind: mut_borrow_kind })) | Write(WriteKind::MutableBorrow(BorrowKind::Mut { kind: mut_borrow_kind })) => { let is_local_mutation_allowed = match mut_borrow_kind { - // `ClosureCapture` is used for mutable variable with a immutable binding. + // `ClosureCapture` is used for mutable variable with an immutable binding. // This is only behaviour difference between `ClosureCapture` and mutable borrows. MutBorrowKind::ClosureCapture => LocalMutationIsAllowed::Yes, MutBorrowKind::Default | MutBorrowKind::TwoPhaseBorrow => { |
