From a5726eb28d3cf321b2accb772dec4f12103a8641 Mon Sep 17 00:00:00 2001 From: Alexis Bourget Date: Tue, 13 Oct 2020 08:49:16 +0200 Subject: [PATCH] Use Self:: in links --- library/core/src/cell.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/library/core/src/cell.rs b/library/core/src/cell.rs index c7a76d33a666..14cd8576e2ae 100644 --- a/library/core/src/cell.rs +++ b/library/core/src/cell.rs @@ -929,7 +929,7 @@ impl RefCell { /// Also, please be aware that this method is only for special circumstances and is usually /// not what you want. In case of doubt, use [`borrow_mut`] instead. /// - /// [`borrow_mut`]: RefCell::borrow_mut() + /// [`borrow_mut`]: Self::borrow_mut() /// /// # Examples /// @@ -953,7 +953,7 @@ impl RefCell { /// ensure no borrows exist and then resets the state tracking shared borrows. This is relevant /// if some `Ref` or `RefMut` borrows have been leaked. /// - /// [`get_mut`]: RefCell::get_mut() + /// [`get_mut`]: Self::get_mut() /// /// # Examples /// @@ -1745,7 +1745,7 @@ impl UnsafeCell { /// when casting to `&mut T`, and ensure that there are no mutations /// or mutable aliases going on when casting to `&T`. /// - /// [`get`]: UnsafeCell::get() + /// [`get`]: Self::get() /// /// # Examples ///