about summary refs log tree commit diff
path: root/library/core/src/alloc/layout.rs
diff options
context:
space:
mode:
authorSacha Ayoun <sachaayoun@gmail.com>2025-08-12 13:18:48 +0100
committerSacha Ayoun <sachaayoun@gmail.com>2025-08-12 13:18:48 +0100
commit427be23b22573699f396431e48970a5659389b27 (patch)
treeabc4c3b04d2be0406705c7537307dd878b68e9f3 /library/core/src/alloc/layout.rs
parenta1531335fe2807715fff569904d99602022643a7 (diff)
downloadrust-427be23b22573699f396431e48970a5659389b27.tar.gz
rust-427be23b22573699f396431e48970a5659389b27.zip
Address dangling doc
Signed-off-by: Sacha Ayoun <sachaayoun@gmail.com>
Diffstat (limited to 'library/core/src/alloc/layout.rs')
-rw-r--r--library/core/src/alloc/layout.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/library/core/src/alloc/layout.rs b/library/core/src/alloc/layout.rs
index 49275975f04..cd5fd77f865 100644
--- a/library/core/src/alloc/layout.rs
+++ b/library/core/src/alloc/layout.rs
@@ -226,10 +226,10 @@ impl Layout {
 
     /// Creates a `NonNull` that is dangling, but well-aligned for this Layout.
     ///
-    /// Note that the pointer value may potentially represent a valid pointer,
-    /// which means this must not be used as a "not yet initialized"
-    /// sentinel value. Types that lazily allocate must track initialization by
-    /// some other means.
+    /// Note that the address of the returned pointer may potentially
+    /// be that of a valid pointer, which means this must not be used
+    /// as a "not yet initialized" sentinel value.
+    /// Types that lazily allocate must track initialization by some other means.
     #[unstable(feature = "alloc_layout_extra", issue = "55724")]
     #[must_use]
     #[inline]