Skip to content

Commit 99320b9

Browse files
committed
Fix typos in arena comments
1 parent da64d07 commit 99320b9

File tree

1 file changed

+2
-2
lines changed
  • compiler/rustc_arena/src

1 file changed

+2
-2
lines changed

compiler/rustc_arena/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ impl DropArena {
533533
ptr::write(mem, object);
534534
let result = &mut *mem;
535535
// Record the destructor after doing the allocation as that may panic
536-
// and would cause `object`'s destuctor to run twice if it was recorded before
536+
// and would cause `object`'s destructor to run twice if it was recorded before
537537
self.destructors
538538
.borrow_mut()
539539
.push(DropType { drop_fn: drop_for_type::<T>, obj: result as *mut T as *mut u8 });
@@ -560,7 +560,7 @@ impl DropArena {
560560
mem::forget(vec.drain(..));
561561

562562
// Record the destructors after doing the allocation as that may panic
563-
// and would cause `object`'s destuctor to run twice if it was recorded before
563+
// and would cause `object`'s destructor to run twice if it was recorded before
564564
for i in 0..len {
565565
destructors.push(DropType {
566566
drop_fn: drop_for_type::<T>,

0 commit comments

Comments
 (0)