about summary refs log tree commit diff
path: root/src/libcore/ptr
diff options
context:
space:
mode:
authorCreepySkeleton <creepy-skeleton@yandex.ru>2019-11-27 21:36:09 +0300
committerCreepySkeleton <creepy-skeleton@yandex.ru>2019-11-27 21:36:09 +0300
commitf11dd32f751b4a64bea0bdd0020879caec197d3f (patch)
tree84529545d40048450aba65449fb08cf4acd93df3 /src/libcore/ptr
parentd411dd27bf391ca8da15a43341ad519a741b2e2a (diff)
downloadrust-f11dd32f751b4a64bea0bdd0020879caec197d3f.tar.gz
rust-f11dd32f751b4a64bea0bdd0020879caec197d3f.zip
Use intra-doc links
Diffstat (limited to 'src/libcore/ptr')
-rw-r--r--src/libcore/ptr/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/ptr/mod.rs b/src/libcore/ptr/mod.rs
index 21314d429c6..1e051dbebca 100644
--- a/src/libcore/ptr/mod.rs
+++ b/src/libcore/ptr/mod.rs
@@ -1089,7 +1089,7 @@ impl<T: ?Sized> *const T {
     /// Rust's aliasing rules. In particular, for the duration of this lifetime,
     /// the memory the pointer points to must not get mutated (except inside `UnsafeCell`).
     ///
-    /// [here]: https://doc.rust-lang.org/std/ptr/index.html#safety
+    /// [here]: crate::ptr#safety
     ///
     /// # Examples
     ///
@@ -1950,7 +1950,7 @@ impl<T: ?Sized> *mut T {
     /// the memory this pointer points to must not get accessed (read or written)
     /// through any other pointer.
     ///
-    /// [here]: https://doc.rust-lang.org/std/ptr/index.html#safety
+    /// [here]: crate::ptr#safety
     /// [`as_ref`]: #method.as_ref
     ///
     /// # Examples