diff options
| author | Chris Gregory <czipperz@gmail.com> | 2019-04-13 15:25:13 -0500 |
|---|---|---|
| committer | Chris Gregory <czipperz@gmail.com> | 2019-04-13 15:25:13 -0500 |
| commit | 27ff5360ab661a3c20ab7256529aeb61b4e2b215 (patch) | |
| tree | 87b0f6d2f83a9190970feb0a5ccf60af1642592f | |
| parent | 4a33ece38216a42764a0c74ae99baf183b888817 (diff) | |
| download | rust-27ff5360ab661a3c20ab7256529aeb61b4e2b215.tar.gz rust-27ff5360ab661a3c20ab7256529aeb61b4e2b215.zip | |
Reorder blank lines in AsMut documentation
| -rw-r--r-- | src/libcore/convert.rs | 3 |
1 files changed, 2 insertions, 1 deletions
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<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. |
