diff options
Diffstat (limited to 'library/core/src/clone.rs')
| -rw-r--r-- | library/core/src/clone.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/clone.rs b/library/core/src/clone.rs index 00300328b64..9d64348289c 100644 --- a/library/core/src/clone.rs +++ b/library/core/src/clone.rs @@ -244,8 +244,8 @@ pub unsafe trait CloneToUninit { /// /// Behavior is undefined if any of the following conditions are violated: /// - /// * `dst` must be [valid] for writes for `std::mem::size_of_val(self)` bytes. - /// * `dst` must be properly aligned to `std::mem::align_of_val(self)`. + /// * `dst` must be [valid] for writes for `size_of_val(self)` bytes. + /// * `dst` must be properly aligned to `align_of_val(self)`. /// /// [valid]: crate::ptr#safety /// [pointer metadata]: crate::ptr::metadata() |
