Skip to content

Commit

Permalink
Remove trailing whitespaces to satisfy tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
blkerby committed May 20, 2019
1 parent a7e1431 commit 178b753
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/liballoc/boxed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@ impl<T: ?Sized> Box<T> {
/// the destructor of `T` and free the allocated memory. For this
/// to be safe, the memory must have been allocated in the precise
/// way that `Box` expects, namely, using the global allocator
/// with the correct [`Layout`] for holding a value of type `T`. In
/// with the correct [`Layout`] for holding a value of type `T`. In
/// particular, this will be satisfied for a pointer obtained
/// from a previously existing `Box` using [`Box::into_raw`].
/// from a previously existing `Box` using [`Box::into_raw`].
///
/// # Safety
///
Expand Down Expand Up @@ -172,15 +172,15 @@ impl<T: ?Sized> Box<T> {
/// After calling this function, the caller is responsible for the
/// memory previously managed by the `Box`. In particular, the
/// caller should properly destroy `T` and release the memory. The
/// easiest way to do so is to convert the raw pointer back into a `Box`
/// easiest way to do so is to convert the raw pointer back into a `Box`
/// with the [`Box::from_raw`] function.
///
/// Note: this is an associated function, which means that you have
/// to call it as `Box::into_raw(b)` instead of `b.into_raw()`. This
/// is so that there is no conflict with a method on the inner type.
///
/// # Examples
/// Converting the raw pointer back into a `Box` with [`Box::from_raw`]
/// Converting the raw pointer back into a `Box` with [`Box::from_raw`]
/// for automatic cleanup:
/// ```
/// let x = Box::new(String::from("Hello"));
Expand All @@ -191,7 +191,7 @@ impl<T: ?Sized> Box<T> {
/// ```
/// use std::alloc::{Layout, dealloc};
/// use std::ptr;
///
///
/// let x = Box::new(String::from("Hello"));
/// let p = Box::into_raw(x);
/// unsafe{ ptr::drop_in_place(p); }
Expand Down

0 comments on commit 178b753

Please sign in to comment.