Skip to content

Commit

Permalink
Clarify transmute example
Browse files Browse the repository at this point in the history
  • Loading branch information
SkiFire13 committed Mar 24, 2024
1 parent 548e14b commit fb65ca1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/src/intrinsics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1356,7 +1356,7 @@ extern "rust-intrinsic" {
/// let v_clone = v_orig.clone();
///
/// // This is the suggested, safe way.
/// // It does copy the entire vector, though, into a new array.
/// // It may copy the entire vector into a new one though, but also may not.
/// let v_collected = v_clone.into_iter()
/// .map(Some)
/// .collect::<Vec<Option<&i32>>>();
Expand Down

0 comments on commit fb65ca1

Please sign in to comment.