Skip to content

Commit

Permalink
extend comment
Browse files Browse the repository at this point in the history
Co-authored-by: lcnr <bastian_kauschke@hotmail.de>
  • Loading branch information
RalfJung and lcnr authored Jan 2, 2021
1 parent db03b58 commit a5b89a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion library/core/src/ptr/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -883,7 +883,8 @@ pub const unsafe fn read_unaligned<T>(src: *const T) -> T {
#[inline]
#[stable(feature = "rust1", since = "1.0.0")]
pub unsafe fn write<T>(dst: *mut T, src: T) {
// We are calling the intrinsics directly to avoid function calls in the generated code.
// We are calling the intrinsics directly to avoid function calls in the generated code
// as `intrinsics::copy_nonoverlapping` is a wrapper function.
extern "rust-intrinsic" {
fn copy_nonoverlapping<T>(src: *const T, dst: *mut T, count: usize);
}
Expand Down

0 comments on commit a5b89a0

Please sign in to comment.