diff options
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/boxed.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/liballoc/boxed.rs b/src/liballoc/boxed.rs index efc28be92a4..be140469eb6 100644 --- a/src/liballoc/boxed.rs +++ b/src/liballoc/boxed.rs @@ -222,12 +222,12 @@ impl<T: ?Sized> Drop for IntermediateBox<T> { } impl<T> Box<T> { - /// Allocates memory on the heap and then moves `x` into it. + /// Allocates memory on the heap and then places `x` into it. /// /// # Examples /// /// ``` - /// let x = Box::new(5); + /// let five = Box::new(5); /// ``` #[stable(feature = "rust1", since = "1.0.0")] #[inline(always)] @@ -266,7 +266,7 @@ impl<T: ?Sized> Box<T> { /// # Examples /// /// ``` - /// let seventeen = Box::new(17u32); + /// let seventeen = Box::new(17); /// let raw = Box::into_raw(seventeen); /// let boxed_again = unsafe { Box::from_raw(raw) }; /// ``` |
