about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--library/alloc/src/rc.rs2
-rw-r--r--library/alloc/src/sync.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/library/alloc/src/rc.rs b/library/alloc/src/rc.rs
index 43affa396c9..3ca10480b34 100644
--- a/library/alloc/src/rc.rs
+++ b/library/alloc/src/rc.rs
@@ -1881,7 +1881,7 @@ impl<T: ?Sized> Weak<T> {
 
         if is_dangling(ptr) {
             // If the pointer is dangling, we return the sentinel directly. This cannot be
-            // a valid payload address, as it is at least as aligned as RcBox (usize).
+            // a valid payload address, as the payload is at least as aligned as RcBox (usize).
             ptr as *const T
         } else {
             // SAFETY: if is_dangling returns false, then the pointer is dereferencable.
diff --git a/library/alloc/src/sync.rs b/library/alloc/src/sync.rs
index 8917e2d4b40..306c0c91e4b 100644
--- a/library/alloc/src/sync.rs
+++ b/library/alloc/src/sync.rs
@@ -1666,7 +1666,7 @@ impl<T: ?Sized> Weak<T> {
 
         if is_dangling(ptr) {
             // If the pointer is dangling, we return the sentinel directly. This cannot be
-            // a valid payload address, as it is at least as aligned as ArcInner (usize).
+            // a valid payload address, as the payload is at least as aligned as ArcInner (usize).
             ptr as *const T
         } else {
             // SAFETY: if is_dangling returns false, then the pointer is dereferencable.