mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
Fix typo
Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
This commit is contained in:
parent
0edc90cd18
commit
b6e847cc98
@ -882,7 +882,7 @@ extern "rust-intrinsic" {
|
||||
/// let v_clone = v_orig.clone();
|
||||
///
|
||||
/// // Using transmute: this relies on the unspecified data layout of `Vec`, which is a
|
||||
/// // bad idea and could cause Undefined Behavior
|
||||
/// // bad idea and could cause Undefined Behavior.
|
||||
/// // However, it is no-copy.
|
||||
/// let v_transmuted = unsafe {
|
||||
/// std::mem::transmute::<Vec<&i32>, Vec<Option<&i32>>>(v_clone)
|
||||
|
Loading…
Reference in New Issue
Block a user