Co-authored-by: Ben Kimock <kimockb@gmail.com>
This commit is contained in:
Ralf Jung 2022-07-11 09:49:55 -04:00 committed by GitHub
parent 2e0ca9472b
commit eed5df52f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2555,7 +2555,7 @@ pub const unsafe fn copy<T>(src: *const T, dst: *mut T, count: usize) {
/// ///
/// Additionally, note that changing `*dst` in this way can easily lead to undefined behavior (UB) /// Additionally, note that changing `*dst` in this way can easily lead to undefined behavior (UB)
/// later if the written bytes are not a valid representation of some `T`. For instance, the /// later if the written bytes are not a valid representation of some `T`. For instance, the
/// follwing is an **incorrect** use of this function: /// following is an **incorrect** use of this function:
/// ///
/// ```rust,no_run /// ```rust,no_run
/// unsafe { /// unsafe {