From: Chris Gregory Date: Sat, 13 Apr 2019 20:25:13 +0000 (-0500) Subject: Reorder blank lines in AsMut documentation X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=27ff5360ab661a3c20ab7256529aeb61b4e2b215;p=rust.git Reorder blank lines in AsMut documentation --- diff --git a/src/libcore/convert.rs b/src/libcore/convert.rs index e04c01e50c0..86846d3842c 100644 --- a/src/libcore/convert.rs +++ b/src/libcore/convert.rs @@ -180,6 +180,7 @@ pub trait AsRef { /// write a function `add_one`that takes all arguments that can be converted to `&mut u64`. /// Because [`Box`] implements `AsMut` `add_one` accepts arguments of type /// `&mut Box` as well: +/// /// ``` /// fn add_one>(num: &mut T) { /// *num.as_mut() += 1; @@ -189,8 +190,8 @@ pub trait AsRef { /// add_one(&mut boxed_num); /// assert_eq!(*boxed_num, 1); /// ``` -/// [`Box`]: ../../std/boxed/struct.Box.html /// +/// [`Box`]: ../../std/boxed/struct.Box.html #[stable(feature = "rust1", since = "1.0.0")] pub trait AsMut { /// Performs the conversion.