Rollup merge of #65373 - kalabukdima:patch-1, r=jonas-schievink
Fix typo in docs for `Rc` r? @czipperz
This commit is contained in:
commit
92b36ce4a7
1 changed files with 2 additions and 2 deletions
|
@ -773,7 +773,7 @@ impl<T: Clone> Rc<T> {
|
||||||
/// referred to as clone-on-write.
|
/// referred to as clone-on-write.
|
||||||
///
|
///
|
||||||
/// If there are no other `Rc` pointers to this value, then [`Weak`]
|
/// If there are no other `Rc` pointers to this value, then [`Weak`]
|
||||||
/// pointers to this value will be dissassociated.
|
/// pointers to this value will be disassociated.
|
||||||
///
|
///
|
||||||
/// See also [`get_mut`], which will fail rather than cloning.
|
/// See also [`get_mut`], which will fail rather than cloning.
|
||||||
///
|
///
|
||||||
|
@ -799,7 +799,7 @@ impl<T: Clone> Rc<T> {
|
||||||
/// assert_eq!(*other_data, 12);
|
/// assert_eq!(*other_data, 12);
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
/// [`Weak`] pointers will be dissassociated:
|
/// [`Weak`] pointers will be disassociated:
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
/// use std::rc::Rc;
|
/// use std::rc::Rc;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue