File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 > ,
You can’t perform that action at this time.
0 commit comments