Skip to content

Commit a5b89a0

Browse files
RalfJunglcnr
andauthored
extend comment
Co-authored-by: lcnr <bastian_kauschke@hotmail.de>
1 parent db03b58 commit a5b89a0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

library/core/src/ptr/mod.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -883,7 +883,8 @@ pub const unsafe fn read_unaligned<T>(src: *const T) -> T {
883883
#[inline]
884884
#[stable(feature = "rust1", since = "1.0.0")]
885885
pub unsafe fn write<T>(dst: *mut T, src: T) {
886-
// We are calling the intrinsics directly to avoid function calls in the generated code.
886+
// We are calling the intrinsics directly to avoid function calls in the generated code
887+
// as `intrinsics::copy_nonoverlapping` is a wrapper function.
887888
extern "rust-intrinsic" {
888889
fn copy_nonoverlapping<T>(src: *const T, dst: *mut T, count: usize);
889890
}

0 commit comments

Comments
 (0)