Skip to content

Commit

Permalink
Box docs: no allocation is done for ZSTs.
Browse files Browse the repository at this point in the history
  • Loading branch information
clarfonthey committed Mar 9, 2017
1 parent ee60afa commit edf5dc6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/liballoc/boxed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
///
/// ```
Expand Down

0 comments on commit edf5dc6

Please sign in to comment.