diff options
| author | Dániel Buga <bugadani@gmail.com> | 2020-10-27 18:14:21 +0100 |
|---|---|---|
| committer | Dániel Buga <bugadani@gmail.com> | 2020-10-27 18:14:21 +0100 |
| commit | 99320b9404c9d5eb361ea008bad43ed8577f05cf (patch) | |
| tree | e1937e2c89b362a63d0ba067bd0304dc61981386 | |
| parent | da64d07191d6703c64e33c5b6335441a0456b77c (diff) | |
| download | rust-99320b9404c9d5eb361ea008bad43ed8577f05cf.tar.gz rust-99320b9404c9d5eb361ea008bad43ed8577f05cf.zip | |
Fix typos in arena comments
| -rw-r--r-- | compiler/rustc_arena/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_arena/src/lib.rs b/compiler/rustc_arena/src/lib.rs index 1a85a46ed74..a8522547666 100644 --- a/compiler/rustc_arena/src/lib.rs +++ b/compiler/rustc_arena/src/lib.rs @@ -533,7 +533,7 @@ impl DropArena { ptr::write(mem, object); let result = &mut *mem; // Record the destructor after doing the allocation as that may panic - // and would cause `object`'s destuctor to run twice if it was recorded before + // and would cause `object`'s destructor to run twice if it was recorded before self.destructors .borrow_mut() .push(DropType { drop_fn: drop_for_type::<T>, obj: result as *mut T as *mut u8 }); @@ -560,7 +560,7 @@ impl DropArena { mem::forget(vec.drain(..)); // Record the destructors after doing the allocation as that may panic - // and would cause `object`'s destuctor to run twice if it was recorded before + // and would cause `object`'s destructor to run twice if it was recorded before for i in 0..len { destructors.push(DropType { drop_fn: drop_for_type::<T>, |
