@@ -3641,7 +3641,8 @@ pub const fn ptr_metadata<P: ptr::Pointee<Metadata = M> + ?Sized, M>(ptr: *const
3641
3641
/// For regions of memory which might overlap, use [`copy`] instead.
3642
3642
///
3643
3643
/// `copy_nonoverlapping` is semantically equivalent to C's [`memcpy`], but
3644
- /// with the argument order swapped.
3644
+ /// with the source and destination arguments swapped,
3645
+ /// and `count` counting the number of `T`s instead of bytes.
3645
3646
///
3646
3647
/// The copy is "untyped" in the sense that data may be uninitialized or otherwise violate the
3647
3648
/// requirements of `T`. The initialization state is preserved exactly.
@@ -3761,8 +3762,10 @@ pub const unsafe fn copy_nonoverlapping<T>(src: *const T, dst: *mut T, count: us
3761
3762
/// If the source and destination will *never* overlap,
3762
3763
/// [`copy_nonoverlapping`] can be used instead.
3763
3764
///
3764
- /// `copy` is semantically equivalent to C's [`memmove`], but with the argument
3765
- /// order swapped. Copying takes place as if the bytes were copied from `src`
3765
+ /// `copy` is semantically equivalent to C's [`memmove`], but
3766
+ /// with the source and destination arguments swapped,
3767
+ /// and `count` counting the number of `T`s instead of bytes.
3768
+ /// Copying takes place as if the bytes were copied from `src`
3766
3769
/// to a temporary array and then copied from the array to `dst`.
3767
3770
///
3768
3771
/// The copy is "untyped" in the sense that data may be uninitialized or otherwise violate the
0 commit comments