diff options
| author | Stephane Raux <stephaneyfx@gmail.com> | 2019-08-25 23:25:56 -0700 |
|---|---|---|
| committer | Stephane Raux <stephaneyfx@gmail.com> | 2019-08-25 23:25:56 -0700 |
| commit | aea94230c476fea2ee073a1bc672125e4586d4b5 (patch) | |
| tree | 8664a951139ef792168edd49df7ae494bad3ae86 /src/liballoc | |
| parent | 318c5d6c963d0e5d8ece89e804b4e696c6011955 (diff) | |
| download | rust-aea94230c476fea2ee073a1bc672125e4586d4b5.tar.gz rust-aea94230c476fea2ee073a1bc672125e4586d4b5.zip | |
Update Box representation comment based on reviews
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/boxed.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/liballoc/boxed.rs b/src/liballoc/boxed.rs index 50174c3f279..b2b23cc9671 100644 --- a/src/liballoc/boxed.rs +++ b/src/liballoc/boxed.rs @@ -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 */ |
