Rollup merge of #53462 - estk:doc-Box_into_raw, r=steveklabnik
Document Box::into_raw returns non-null ptr Closes #52806.
This commit is contained in:
commit
fed4298aed
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue