We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0edc90c commit b6e847cCopy full SHA for b6e847c
src/libcore/intrinsics.rs
@@ -882,7 +882,7 @@ extern "rust-intrinsic" {
882
/// let v_clone = v_orig.clone();
883
///
884
/// // Using transmute: this relies on the unspecified data layout of `Vec`, which is a
885
- /// // bad idea and could cause Undefined Behavior
+ /// // bad idea and could cause Undefined Behavior.
886
/// // However, it is no-copy.
887
/// let v_transmuted = unsafe {
888
/// std::mem::transmute::<Vec<&i32>, Vec<Option<&i32>>>(v_clone)
0 commit comments