about summary refs log tree commit diff
diff options
context:
space:
mode:
authorCamelid <camelidcamel@gmail.com>2020-09-09 13:42:57 -0700
committerCamelid <camelidcamel@gmail.com>2020-09-09 13:42:57 -0700
commit884a1b4b9b358fcb2c12dab0aac5671c8534b29d (patch)
treeec00eaec40d493e1b88578cdaea0711debacdafe
parentd24026bb6dbf33f022b9dd1daffeeab2c9f7d117 (diff)
downloadrust-884a1b4b9b358fcb2c12dab0aac5671c8534b29d.tar.gz
rust-884a1b4b9b358fcb2c12dab0aac5671c8534b29d.zip
Fix anchor links
#safety -> self#safety
-rw-r--r--library/core/src/ptr/mod.rs20
1 files changed, 10 insertions, 10 deletions
diff --git a/library/core/src/ptr/mod.rs b/library/core/src/ptr/mod.rs
index eb31c739e83..92c4f2ccfe8 100644
--- a/library/core/src/ptr/mod.rs
+++ b/library/core/src/ptr/mod.rs
@@ -134,7 +134,7 @@ mod mut_ptr;
 ///
 /// Note that even if `T` has size `0`, the pointer must be non-NULL and properly aligned.
 ///
-/// [valid]: #safety
+/// [valid]: self#safety
 ///
 /// # Examples
 ///
@@ -316,7 +316,7 @@ pub const fn slice_from_raw_parts_mut<T>(data: *mut T, len: usize) -> *mut [T] {
 ///
 /// Note that even if `T` has size `0`, the pointers must be non-NULL and properly aligned.
 ///
-/// [valid]: #safety
+/// [valid]: self#safety
 ///
 /// # Examples
 ///
@@ -394,7 +394,7 @@ pub unsafe fn swap<T>(x: *mut T, y: *mut T) {
 /// Note that even if the effectively copied size (`count * size_of::<T>()`) is `0`,
 /// the pointers must be non-NULL and properly aligned.
 ///
-/// [valid]: #safety
+/// [valid]: self#safety
 ///
 /// # Examples
 ///
@@ -533,7 +533,7 @@ unsafe fn swap_nonoverlapping_bytes(x: *mut u8, y: *mut u8, len: usize) {
 ///
 /// Note that even if `T` has size `0`, the pointer must be non-NULL and properly aligned.
 ///
-/// [valid]: #safety
+/// [valid]: self#safety
 ///
 /// # Examples
 ///
@@ -668,7 +668,7 @@ pub unsafe fn replace<T>(dst: *mut T, mut src: T) -> T {
 /// assert_eq!(s, "bar");
 /// ```
 ///
-/// [valid]: #safety
+/// [valid]: self#safety
 #[inline]
 #[stable(feature = "rust1", since = "1.0.0")]
 pub unsafe fn read<T>(src: *const T) -> T {
@@ -706,7 +706,7 @@ pub unsafe fn read<T>(src: *const T) -> T {
 /// Note that even if `T` has size `0`, the pointer must be non-NULL.
 ///
 /// [read-ownership]: read#ownership-of-the-returned-value
-/// [valid]: #safety
+/// [valid]: self#safety
 ///
 /// ## On `packed` structs
 ///
@@ -809,7 +809,7 @@ pub unsafe fn read_unaligned<T>(src: *const T) -> T {
 ///
 /// Note that even if `T` has size `0`, the pointer must be non-NULL and properly aligned.
 ///
-/// [valid]: #safety
+/// [valid]: self#safety
 ///
 /// # Examples
 ///
@@ -898,7 +898,7 @@ pub unsafe fn write<T>(dst: *mut T, src: T) {
 ///
 /// Note that even if `T` has size `0`, the pointer must be non-NULL.
 ///
-/// [valid]: #safety
+/// [valid]: self#safety
 ///
 /// ## On `packed` structs
 ///
@@ -1010,7 +1010,7 @@ pub unsafe fn write_unaligned<T>(dst: *mut T, src: T) {
 ///
 /// Note that even if `T` has size `0`, the pointer must be non-NULL and properly aligned.
 ///
-/// [valid]: #safety
+/// [valid]: self#safety
 /// [read-ownership]: read#ownership-of-the-returned-value
 ///
 /// Just like in C, whether an operation is volatile has no bearing whatsoever
@@ -1080,7 +1080,7 @@ pub unsafe fn read_volatile<T>(src: *const T) -> T {
 ///
 /// Note that even if `T` has size `0`, the pointer must be non-NULL and properly aligned.
 ///
-/// [valid]: #safety
+/// [valid]: self#safety
 ///
 /// Just like in C, whether an operation is volatile has no bearing whatsoever
 /// on questions involving concurrent access from multiple threads. Volatile