Skip to content

Commit d7ce9a2

Browse files
Fix broken relative links
1 parent 422b616 commit d7ce9a2

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/libcore/intrinsics.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -992,11 +992,11 @@ extern "rust-intrinsic" {
992992
///
993993
/// * The two regions of memory must *not* overlap.
994994
///
995-
/// Additionally, if `T` is not [`Copy`](../marker/trait.Copy), only the
996-
/// region at `src` *or* the region at `dst` can be used or dropped after
997-
/// calling `copy_nonoverlapping`. `copy_nonoverlapping` creates bitwise
998-
/// copies of `T`, regardless of whether `T: Copy`, which can result in
999-
/// undefined behavior if both copies are used.
995+
/// Additionally, if `T` is not [`Copy`](../marker/trait.Copy.html), only
996+
/// the region at `src` *or* the region at `dst` can be used or dropped
997+
/// after calling `copy_nonoverlapping`. `copy_nonoverlapping` creates
998+
/// bitwise copies of `T`, regardless of whether `T: Copy`, which can result
999+
/// in undefined behavior if both copies are used.
10001000
///
10011001
/// # Examples
10021002
///
@@ -1043,7 +1043,7 @@ extern "rust-intrinsic" {
10431043
/// assert!(b.is_empty());
10441044
/// ```
10451045
///
1046-
/// [`Vec::append()`]: ../vec/struct.Vec.html#method.append
1046+
/// [`Vec::append`]: ../../std/vec/struct.Vec.html#method.append
10471047
#[stable(feature = "rust1", since = "1.0.0")]
10481048
pub fn copy_nonoverlapping<T>(src: *const T, dst: *mut T, count: usize);
10491049

src/libcore/ptr.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ pub use intrinsics::write_bytes;
5050
/// as the compiler doesn't need to prove that it's sound to elide the
5151
/// copy.
5252
///
53-
/// [`ptr::read`]: ./fn.read.html
53+
/// [`ptr::read`]: ../ptr/fn.read.html
5454
///
5555
/// # Safety
5656
///
@@ -72,7 +72,7 @@ pub use intrinsics::write_bytes;
7272
/// dropped.
7373
///
7474
/// [`Copy`]: ../marker/trait.Copy.html
75-
/// [`write`]: ./fn.write.html
75+
/// [`write`]: ../ptr/fn.write.html
7676
///
7777
/// # Examples
7878
///

0 commit comments

Comments
 (0)