mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-31 21:47:15 +03:00
Intra doc links for cell.rs
This commit is contained in:
@@ -929,7 +929,7 @@ pub fn as_ptr(&self) -> *mut T {
|
||||
/// 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`]: #method.borrow_mut
|
||||
/// [`borrow_mut`]: RefCell::borrow_mut()
|
||||
///
|
||||
/// # Examples
|
||||
///
|
||||
@@ -953,7 +953,7 @@ pub fn get_mut(&mut self) -> &mut T {
|
||||
/// 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`]: #method.get_mut
|
||||
/// [`get_mut`]: RefCell::get_mut()
|
||||
///
|
||||
/// # Examples
|
||||
///
|
||||
@@ -1745,7 +1745,7 @@ pub fn get_mut(&mut self) -> &mut T {
|
||||
/// when casting to `&mut T`, and ensure that there are no mutations
|
||||
/// or mutable aliases going on when casting to `&T`.
|
||||
///
|
||||
/// [`get`]: #method.get
|
||||
/// [`get`]: UnsafeCell::get()
|
||||
///
|
||||
/// # Examples
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user