Skip to content

Commit a5726eb

Browse files
committed
Use Self:: in links
1 parent b702060 commit a5726eb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

library/core/src/cell.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -929,7 +929,7 @@ impl<T: ?Sized> RefCell<T> {
929929
/// Also, please be aware that this method is only for special circumstances and is usually
930930
/// not what you want. In case of doubt, use [`borrow_mut`] instead.
931931
///
932-
/// [`borrow_mut`]: RefCell::borrow_mut()
932+
/// [`borrow_mut`]: Self::borrow_mut()
933933
///
934934
/// # Examples
935935
///
@@ -953,7 +953,7 @@ impl<T: ?Sized> RefCell<T> {
953953
/// ensure no borrows exist and then resets the state tracking shared borrows. This is relevant
954954
/// if some `Ref` or `RefMut` borrows have been leaked.
955955
///
956-
/// [`get_mut`]: RefCell::get_mut()
956+
/// [`get_mut`]: Self::get_mut()
957957
///
958958
/// # Examples
959959
///
@@ -1745,7 +1745,7 @@ impl<T: ?Sized> UnsafeCell<T> {
17451745
/// when casting to `&mut T`, and ensure that there are no mutations
17461746
/// or mutable aliases going on when casting to `&T`.
17471747
///
1748-
/// [`get`]: UnsafeCell::get()
1748+
/// [`get`]: Self::get()
17491749
///
17501750
/// # Examples
17511751
///

0 commit comments

Comments
 (0)