Skip to content

Commit aea9423

Browse files
committed
Update Box representation comment based on reviews
1 parent 318c5d6 commit aea9423

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/liballoc/boxed.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,8 @@
6363
//! T` obtained from `Box::<T>::into_raw` may be deallocated using the
6464
//! [`Global`] allocator with `Layout::for_value(&*value)`.
6565
//!
66-
//! `Box<T>` has the same representation as `*mut T`. In particular, when
67-
//! `T: Sized`, this means that `Box<T>` has the same representation as
68-
//! a C pointer, making the following code valid in FFI:
66+
//! `Box<T>` has the same ABI as `&mut T`. In particular, when `T: Sized`,
67+
//! this allows using `Box<T>` in FFI:
6968
//!
7069
//! ```c
7170
//! /* C header */

0 commit comments

Comments
 (0)