File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 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> {
11001100 /// [`clone`] the inner value to a new allocation to ensure unique ownership. This is also
11011101 /// referred to as clone-on-write.
11021102 ///
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.
11051106 ///
11061107 /// See also [`get_mut`], which will fail rather than cloning.
11071108 ///
Original file line number Diff line number Diff line change @@ -1350,8 +1350,9 @@ impl<T: Clone> Arc<T> {
13501350 /// [`clone`] the inner value to a new allocation to ensure unique ownership. This is also
13511351 /// referred to as clone-on-write.
13521352 ///
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.
13551356 ///
13561357 /// See also [`get_mut`], which will fail rather than cloning.
13571358 ///
You can’t perform that action at this time.
0 commit comments