diff --git a/src/liballoc/boxed.rs b/src/liballoc/boxed.rs index 254a5bc3f04..be140469eb6 100644 --- a/src/liballoc/boxed.rs +++ b/src/liballoc/boxed.rs @@ -266,7 +266,7 @@ impl Box { /// # 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) }; /// ```