@@ -4250,7 +4250,8 @@ pub const fn ptr_metadata<P: ptr::Pointee<Metadata = M> + ?Sized, M>(_ptr: *cons
4250
4250
/// For regions of memory which might overlap, use [`copy`] instead.
4251
4251
///
4252
4252
/// `copy_nonoverlapping` is semantically equivalent to C's [`memcpy`], but
4253
- /// with the argument order swapped.
4253
+ /// with the source and destination arguments swapped,
4254
+ /// and `count` counting the number of `T`s instead of bytes.
4254
4255
///
4255
4256
/// The copy is "untyped" in the sense that data may be uninitialized or otherwise violate the
4256
4257
/// requirements of `T`. The initialization state is preserved exactly.
@@ -4377,8 +4378,10 @@ pub const unsafe fn copy_nonoverlapping<T>(src: *const T, dst: *mut T, count: us
4377
4378
/// If the source and destination will *never* overlap,
4378
4379
/// [`copy_nonoverlapping`] can be used instead.
4379
4380
///
4380
- /// `copy` is semantically equivalent to C's [`memmove`], but with the argument
4381
- /// order swapped. Copying takes place as if the bytes were copied from `src`
4381
+ /// `copy` is semantically equivalent to C's [`memmove`], but
4382
+ /// with the source and destination arguments swapped,
4383
+ /// and `count` counting the number of `T`s instead of bytes.
4384
+ /// Copying takes place as if the bytes were copied from `src`
4382
4385
/// to a temporary array and then copied from the array to `dst`.
4383
4386
///
4384
4387
/// The copy is "untyped" in the sense that data may be uninitialized or otherwise violate the
0 commit comments