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 {
533
533
ptr:: write ( mem, object) ;
534
534
let result = & mut * mem;
535
535
// 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
537
537
self . destructors
538
538
. borrow_mut ( )
539
539
. push ( DropType { drop_fn : drop_for_type :: < T > , obj : result as * mut T as * mut u8 } ) ;
@@ -560,7 +560,7 @@ impl DropArena {
560
560
mem:: forget ( vec. drain ( ..) ) ;
561
561
562
562
// 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
564
564
for i in 0 ..len {
565
565
destructors. push ( DropType {
566
566
drop_fn : drop_for_type :: < T > ,
You can’t perform that action at this time.
0 commit comments