about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorStephane Raux <stephaneyfx@gmail.com>2019-08-25 23:25:56 -0700
committerStephane Raux <stephaneyfx@gmail.com>2019-08-25 23:25:56 -0700
commitaea94230c476fea2ee073a1bc672125e4586d4b5 (patch)
tree8664a951139ef792168edd49df7ae494bad3ae86 /src/liballoc
parent318c5d6c963d0e5d8ece89e804b4e696c6011955 (diff)
downloadrust-aea94230c476fea2ee073a1bc672125e4586d4b5.tar.gz
rust-aea94230c476fea2ee073a1bc672125e4586d4b5.zip
Update Box representation comment based on reviews
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/boxed.rs5
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 */