]> git.lizzy.rs Git - rust.git/commitdiff
Use intra-doc links for links with anchors
authorDenis Vasilik <contact@denisvasilik.com>
Wed, 19 Aug 2020 13:22:04 +0000 (15:22 +0200)
committerDenis Vasilik <contact@denisvasilik.com>
Wed, 19 Aug 2020 13:22:04 +0000 (15:22 +0200)
library/core/src/intrinsics.rs

index 469dd0cbdd88611e4171023cd3d42d558706bc9b..ed38ba79257974afed302ca2cdce6b93eceb1f85 100644 (file)
@@ -2079,8 +2079,8 @@ pub(crate) fn is_nonoverlapping<T>(src: *const T, dst: *const T, count: usize) -
 ///
 /// [`Copy`]: crate::marker::Copy
 /// [`read`]: crate::ptr::read
-/// [read-ownership]: ../ptr/fn.read.html#ownership-of-the-returned-value
-/// [valid]: ../ptr/index.html#safety
+/// [read-ownership]: crate::ptr::read
+/// [valid]: crate::ptr
 ///
 /// # Examples
 ///
@@ -2181,8 +2181,8 @@ pub unsafe fn copy_nonoverlapping<T>(src: *const T, dst: *mut T, count: usize) {
 ///
 /// [`Copy`]: crate::marker::Copy
 /// [`read`]: crate::ptr::read
-/// [read-ownership]: ../ptr/fn.read.html#ownership-of-the-returned-value
-/// [valid]: ../ptr/index.html#safety
+/// [read-ownership]: crate::ptr::read
+/// [valid]: crate::ptr
 ///
 /// # Examples
 ///
@@ -2240,7 +2240,7 @@ pub unsafe fn copy<T>(src: *const T, dst: *mut T, count: usize) {
 /// Note that even if the effectively copied size (`count * size_of::<T>()`) is
 /// `0`, the pointer must be non-NULL and properly aligned.
 ///
-/// [valid]: ../ptr/index.html#safety
+/// [valid]: crate::ptr
 ///
 /// # Examples
 ///