Skip to content

Commit e241d5a

Browse files
Make transmute_copy docs read better
1 parent b629c85 commit e241d5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/mem/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1000,7 +1000,7 @@ pub fn copy<T: Copy>(x: &T) -> T {
10001000
///
10011001
/// This function will unsafely assume the pointer `src` is valid for [`size_of::<U>`][size_of]
10021002
/// bytes by transmuting `&T` to `&U` and then reading the `&U` (except that this is done in a way
1003-
/// that is correct even when `&U` makes stricter alignment requirements than `&T`). It will also
1003+
/// that is correct even when `&U` has stricter alignment requirements than `&T`). It will also
10041004
/// unsafely create a copy of the contained value instead of moving out of `src`.
10051005
///
10061006
/// It is not a compile-time error if `T` and `U` have different sizes, but it

0 commit comments

Comments
 (0)