Box docs: no allocation is done for ZSTs.

This commit is contained in:
Clar Charr 2017-03-08 21:53:28 -05:00
parent ee60afa094
commit edf5dc66c1

View File

@ -225,6 +225,8 @@ impl<T: ?Sized> Drop for IntermediateBox<T> {
impl<T> Box<T> {
/// Allocates memory on the heap and then places `x` into it.
///
/// This doesn't actually allocate if `T` is zero-sized.
///
/// # Examples
///
/// ```