Skip to content

Commit 16f7536

Browse files
committed
Adjust documentation wording
1 parent 831d2ed commit 16f7536

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

library/core/src/intrinsics.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2425,7 +2425,8 @@ pub(crate) const unsafe fn assert_validity_of<T>(_: *const T) -> bool {
24252425
}
24262426

24272427
#[cfg(not(bootstrap))]
2428-
/// Asserts that the value at `value` is valid at type T.
2428+
/// Asserts that the value at `value` is a valid T.
2429+
///
24292430
/// Best effort, and is UB if the value is invalid.
24302431
pub(crate) unsafe fn assert_validity_of<T>(value: *const T) -> bool {
24312432
// We have to do this, since we call assert_validity_of inside MaybeUninit::assume_init

0 commit comments

Comments
 (0)