File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1881,7 +1881,7 @@ impl<T: ?Sized> Weak<T> {
1881
1881
1882
1882
if is_dangling ( ptr) {
1883
1883
// If the pointer is dangling, we return the sentinel directly. This cannot be
1884
- // a valid payload address, as it is at least as aligned as RcBox (usize).
1884
+ // a valid payload address, as the payload is at least as aligned as RcBox (usize).
1885
1885
ptr as * const T
1886
1886
} else {
1887
1887
// SAFETY: if is_dangling returns false, then the pointer is dereferencable.
Original file line number Diff line number Diff line change @@ -1666,7 +1666,7 @@ impl<T: ?Sized> Weak<T> {
1666
1666
1667
1667
if is_dangling ( ptr) {
1668
1668
// If the pointer is dangling, we return the sentinel directly. This cannot be
1669
- // a valid payload address, as it is at least as aligned as ArcInner (usize).
1669
+ // a valid payload address, as the payload is at least as aligned as ArcInner (usize).
1670
1670
ptr as * const T
1671
1671
} else {
1672
1672
// SAFETY: if is_dangling returns false, then the pointer is dereferencable.
You can’t perform that action at this time.
0 commit comments