File tree 2 files changed +6
-5
lines changed
2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -1832,8 +1832,9 @@ impl<T: ?Sized> Weak<T> {
1832
1832
}
1833
1833
}
1834
1834
1835
- /// Returns `true` if the two `Weak`s point to the same value (not just values
1836
- /// that compare as equal).
1835
+ /// Returns `true` if the two `Weak`s point to the same value (not just
1836
+ /// values that compare as equal), or if both don't point to any value
1837
+ /// (because they were created with `Weak::new()`).
1837
1838
///
1838
1839
/// # Notes
1839
1840
///
Original file line number Diff line number Diff line change @@ -1550,15 +1550,15 @@ impl<T: ?Sized> Weak<T> {
1550
1550
}
1551
1551
}
1552
1552
1553
- /// Returns `true` if the two `Weak`s point to the same value (not just values
1554
- /// that compare as equal).
1553
+ /// Returns `true` if the two `Weak`s point to the same value (not just
1554
+ /// values that compare as equal), or if both don't point to any value
1555
+ /// (because they were created with `Weak::new()`).
1555
1556
///
1556
1557
/// # Notes
1557
1558
///
1558
1559
/// Since this compares pointers it means that `Weak::new()` will equal each
1559
1560
/// other, even though they don't point to any value.
1560
1561
///
1561
- ///
1562
1562
/// # Examples
1563
1563
///
1564
1564
/// ```
You can’t perform that action at this time.
0 commit comments