Skip to content

Commit e954f8c

Browse files
committed
Clarify transmute example
1 parent beee524 commit e954f8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/intrinsics.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1356,7 +1356,7 @@ extern "rust-intrinsic" {
13561356
/// let v_clone = v_orig.clone();
13571357
///
13581358
/// // This is the suggested, safe way.
1359-
/// // It does copy the entire vector, though, into a new array.
1359+
/// // It may copy the entire vector into a new one though, but also may not.
13601360
/// let v_collected = v_clone.into_iter()
13611361
/// .map(Some)
13621362
/// .collect::<Vec<Option<&i32>>>();

0 commit comments

Comments
 (0)