Skip to content

Commit

Permalink
Rollup merge of rust-lang#53462 - estk:doc-Box_into_raw, r=steveklabnik
Browse files Browse the repository at this point in the history
Document Box::into_raw returns non-null ptr

Closes  rust-lang#52806.
  • Loading branch information
kennytm committed Aug 21, 2018
2 parents 7896ac3 + de35b66 commit fed4298
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/liballoc/boxed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fed4298

Please sign in to comment.