Update library/core/src/intrinsics/mod.rs

Co-authored-by: Thom Chiovoloni <thom@shift.click>
This commit is contained in:
ClearLove 2025-03-13 11:34:06 +08:00 committed by GitHub
parent d2ff65807c
commit 6a01990215
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1660,7 +1660,7 @@ pub unsafe fn volatile_copy_memory<T>(_dst: *mut T, _src: *const T, _count: usiz
/// # Safety
///
/// The safety requirements are consistent with [`write_bytes`] while the write behavior is volatile,
/// which means it will not be optimized out unless size is equal to zero.
/// which means it will not be optimized out unless `_count` or `size_of::<T>()` is equal to zero.
///
/// [`write_bytes`]: ptr::write_bytes
#[rustc_intrinsic]