Skip to content

Commit 568e8d8

Browse files
Fix tests
1 parent bf5e5a8 commit 568e8d8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/arc-drop.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Finally, we can drop the data itself. We use `Box::from_raw` to drop the boxed
6868
must convert using `NonNull::as_ptr`.
6969

7070
```rust,ignore
71-
unsafe { stdBox::from_raw(self.ptr.as_ptr()) }
71+
unsafe { Box::from_raw(self.ptr.as_ptr()); }
7272
```
7373

7474
This is safe as we know we have the last pointer to the `ArcInner` and that its
@@ -86,7 +86,7 @@ impl<T> Drop for Arc<T> {
8686
atomic::fence(Ordering::Acquire);
8787
// This is safe as we know we have the last pointer to the `ArcInner`
8888
// and that its pointer is valid.
89-
unsafe { Box::from_raw(self.ptr.as_ptr()) }
89+
unsafe { Box::from_raw(self.ptr.as_ptr()); }
9090
}
9191
}
9292
```

src/arc-final.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ impl<T> Drop for Arc<T> {
6666
atomic::fence(Ordering::Acquire);
6767
// This is safe as we know we have the last pointer to the `ArcInner`
6868
// and that its pointer is valid.
69-
unsafe { Box::from_raw(self.ptr.as_ptr()) }
69+
unsafe { Box::from_raw(self.ptr.as_ptr()); }
7070
}
7171
}
7272

0 commit comments

Comments
 (0)