Skip to content

Commit 71b93d0

Browse files
DiuDiu777thomcc
andauthored
Update library/core/src/intrinsics/mod.rs
Co-authored-by: Thom Chiovoloni <[email protected]>
1 parent 837ce42 commit 71b93d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/intrinsics/mod.rs

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

0 commit comments

Comments
 (0)