Document Box::into_raw returns non-null ptr

This commit is contained in:
Evan Simmons 2018-08-17 21:21:00 -06:00
parent 4d5ef325e0
commit de35b66783

View file

@ -126,7 +126,9 @@ impl<T: ?Sized> Box<T> {
Box(Unique::new_unchecked(raw))
}
/// Consumes the `Box`, returning the wrapped raw pointer.
/// Consumes the `Box`, returning a wrapped raw pointer.
///
/// The pointer will be properly aligned and non-null.
///
/// After calling this function, the caller is responsible for the
/// memory previously managed by the `Box`. In particular, the