]> git.lizzy.rs Git - rust.git/blobdiff - library/core/src/ptr/non_null.rs
More doc-comments for pointer metadata APIs
[rust.git] / library / core / src / ptr / non_null.rs
index 00cb1e1b271450ea19e32abb03a924c62bd3ddbc..3de5b097f5e34a56298aca6057e6a180474e9400 100644 (file)
@@ -179,6 +179,8 @@ pub fn new(ptr: *mut T) -> Option<Self> {
     /// `NonNull` pointer is returned, as opposed to a raw `*const` pointer.
     ///
     /// See the documentation of [`std::ptr::from_raw_parts`] for more details.
+    ///
+    /// [`std::ptr::from_raw_parts`]: crate::ptr::from_raw_parts
     #[cfg(not(bootstrap))]
     #[unstable(feature = "ptr_metadata", issue = /* FIXME */ "none")]
     #[rustc_const_unstable(feature = "ptr_metadata", issue = /* FIXME */ "none")]