Fix typo
Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
This commit is contained in:
parent
0edc90cd18
commit
b6e847cc98
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue