Skip to content

Commit 4b0a0e3

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

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
@@ -1635,7 +1635,7 @@ pub fn ptr_mask<T>(_ptr: *const T, _mask: usize) -> *const T;
16351635
///
16361636
/// The safety requirements are consistent with [`copy_nonoverlapping`]
16371637
/// while the read and write behaviors are volatile,
1638-
/// which means it will not be optimized out unless size is equal to zero.
1638+
/// which means it will not be optimized out unless `_count` or `size_of::<T>()` is equal to zero.
16391639
///
16401640
/// [`copy_nonoverlapping`]: ptr::copy_nonoverlapping
16411641
#[rustc_intrinsic]

0 commit comments

Comments
 (0)