Update Box representation comment based on reviews
This commit is contained in:
parent
318c5d6c96
commit
aea94230c4
1 changed files with 2 additions and 3 deletions
|
|
@ -63,9 +63,8 @@
|
|||
//! T` obtained from `Box::<T>::into_raw` may be deallocated using the
|
||||
//! [`Global`] allocator with `Layout::for_value(&*value)`.
|
||||
//!
|
||||
//! `Box<T>` has the same representation as `*mut T`. In particular, when
|
||||
//! `T: Sized`, this means that `Box<T>` has the same representation as
|
||||
//! a C pointer, making the following code valid in FFI:
|
||||
//! `Box<T>` has the same ABI as `&mut T`. In particular, when `T: Sized`,
|
||||
//! this allows using `Box<T>` in FFI:
|
||||
//!
|
||||
//! ```c
|
||||
//! /* C header */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue