]> git.lizzy.rs Git - rust.git/commitdiff
Update Box representation comment based on reviews
authorStephane Raux <stephaneyfx@gmail.com>
Mon, 26 Aug 2019 06:25:56 +0000 (23:25 -0700)
committerStephane Raux <stephaneyfx@gmail.com>
Mon, 26 Aug 2019 06:25:56 +0000 (23:25 -0700)
src/liballoc/boxed.rs

index 50174c3f279a238a5f05c53231e3b6841cb8ee45..b2b23cc9671b1c125c99f1bab8b14fffa6b2bff2 100644 (file)
@@ -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 */