about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGiacomo Stevanato <giaco.stevanato@gmail.com>2024-03-24 11:20:10 +0100
committerGiacomo Stevanato <giaco.stevanato@gmail.com>2024-03-24 11:27:34 +0100
commitfb65ca14b21cb3210251915864007d7c0d64ae21 (patch)
tree6ccd08d88787cb3daf9bb99e3407beecff12b42e
parent548e14b43963882fb758deb89e8258d9b8c2fc2a (diff)
downloadrust-fb65ca14b21cb3210251915864007d7c0d64ae21.tar.gz
rust-fb65ca14b21cb3210251915864007d7c0d64ae21.zip
Clarify transmute example
-rw-r--r--library/core/src/intrinsics.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/intrinsics.rs b/library/core/src/intrinsics.rs
index dec31548fc8..bb1debfc77d 100644
--- a/library/core/src/intrinsics.rs
+++ b/library/core/src/intrinsics.rs
@@ -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>>>();