File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -1100,8 +1100,9 @@ impl<T: Clone> Rc<T> {
1100
1100
/// [`clone`] the inner value to a new allocation to ensure unique ownership. This is also
1101
1101
/// referred to as clone-on-write.
1102
1102
///
1103
- /// If there are no other `Rc` pointers to this allocation, then [`Weak`]
1104
- /// pointers to this allocation will be disassociated.
1103
+ /// However, if there are no other `Rc` pointers to this allocation, but some [`Weak`]
1104
+ /// pointers, then the [`Weak`] pointers will be disassociated and the inner value will not
1105
+ /// be cloned.
1105
1106
///
1106
1107
/// See also [`get_mut`], which will fail rather than cloning.
1107
1108
///
Original file line number Diff line number Diff line change @@ -1350,8 +1350,9 @@ impl<T: Clone> Arc<T> {
1350
1350
/// [`clone`] the inner value to a new allocation to ensure unique ownership. This is also
1351
1351
/// referred to as clone-on-write.
1352
1352
///
1353
- /// If there are no other `Arc` pointers to this allocation, then [`Weak`]
1354
- /// pointers to this allocation will be disassociated.
1353
+ /// However, if there are no other `Arc` pointers to this allocation, but some [`Weak`]
1354
+ /// pointers, then the [`Weak`] pointers will be disassociated and the inner value will not
1355
+ /// be cloned.
1355
1356
///
1356
1357
/// See also [`get_mut`], which will fail rather than cloning.
1357
1358
///
You can’t perform that action at this time.
0 commit comments