]> git.lizzy.rs Git - rust.git/commitdiff
Reorder blank lines in AsMut documentation
authorChris Gregory <czipperz@gmail.com>
Sat, 13 Apr 2019 20:25:13 +0000 (15:25 -0500)
committerChris Gregory <czipperz@gmail.com>
Sat, 13 Apr 2019 20:25:13 +0000 (15:25 -0500)
src/libcore/convert.rs

index e04c01e50c0bce1c683955b827434ca930d551be..86846d3842c08c640ac06ca0529c2c3517d36b9f 100644 (file)
@@ -180,6 +180,7 @@ pub trait AsRef<T: ?Sized> {
 /// write a function `add_one`that takes all arguments that can be converted to `&mut u64`.
 /// Because [`Box<T>`] implements `AsMut<T>` `add_one` accepts arguments of type
 /// `&mut Box<u64>` as well:
+///
 /// ```
 /// fn add_one<T: AsMut<u64>>(num: &mut T) {
 ///     *num.as_mut() += 1;
@@ -189,8 +190,8 @@ pub trait AsRef<T: ?Sized> {
 /// add_one(&mut boxed_num);
 /// assert_eq!(*boxed_num, 1);
 /// ```
-/// [`Box<T>`]: ../../std/boxed/struct.Box.html
 ///
+/// [`Box<T>`]: ../../std/boxed/struct.Box.html
 #[stable(feature = "rust1", since = "1.0.0")]
 pub trait AsMut<T: ?Sized> {
     /// Performs the conversion.