Skip to content

Commit 27ff536

Browse files
committed
Reorder blank lines in AsMut documentation
1 parent 4a33ece commit 27ff536

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/libcore/convert.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ pub trait AsRef<T: ?Sized> {
180180
/// write a function `add_one`that takes all arguments that can be converted to `&mut u64`.
181181
/// Because [`Box<T>`] implements `AsMut<T>` `add_one` accepts arguments of type
182182
/// `&mut Box<u64>` as well:
183+
///
183184
/// ```
184185
/// fn add_one<T: AsMut<u64>>(num: &mut T) {
185186
/// *num.as_mut() += 1;
@@ -189,8 +190,8 @@ pub trait AsRef<T: ?Sized> {
189190
/// add_one(&mut boxed_num);
190191
/// assert_eq!(*boxed_num, 1);
191192
/// ```
192-
/// [`Box<T>`]: ../../std/boxed/struct.Box.html
193193
///
194+
/// [`Box<T>`]: ../../std/boxed/struct.Box.html
194195
#[stable(feature = "rust1", since = "1.0.0")]
195196
pub trait AsMut<T: ?Sized> {
196197
/// Performs the conversion.

0 commit comments

Comments
 (0)