Skip to content

Commit ad47bf5

Browse files
committed
Add rustdoc aliases to ptr::copy and ptr::copy_nonoverlapping
1 parent 436494b commit ad47bf5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/libcore/intrinsics.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1515,6 +1515,7 @@ fn overlaps<T>(src: *const T, dst: *const T, count: usize) -> bool {
15151515
/// ```
15161516
///
15171517
/// [`Vec::append`]: ../../std/vec/struct.Vec.html#method.append
1518+
#[doc(alias = "memcpy")]
15181519
#[stable(feature = "rust1", since = "1.0.0")]
15191520
#[inline]
15201521
pub unsafe fn copy_nonoverlapping<T>(src: *const T, dst: *mut T, count: usize) {
@@ -1579,6 +1580,7 @@ pub unsafe fn copy_nonoverlapping<T>(src: *const T, dst: *mut T, count: usize) {
15791580
/// dst
15801581
/// }
15811582
/// ```
1583+
#[doc(alias = "memmove")]
15821584
#[stable(feature = "rust1", since = "1.0.0")]
15831585
#[inline]
15841586
pub unsafe fn copy<T>(src: *const T, dst: *mut T, count: usize) {

0 commit comments

Comments
 (0)