We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e7d4c7 commit f92c204Copy full SHA for f92c204
src/libcore/mem.rs
@@ -908,7 +908,7 @@ pub fn discriminant<T>(v: &T) -> Discriminant<T> {
908
/// `ManuallyDrop<T>` is subject to the same layout optimizations as `T`.
909
/// As a consequence, it has *no effect* on the assumptions that the compiler makes
910
/// about all values being initialized at their type. In particular, initializing
911
-/// a `ManuallyDrop<&T>` with [`mem::zeroed`] is undefined behavior.
+/// a `ManuallyDrop<&mut T>` with [`mem::zeroed`] is undefined behavior.
912
///
913
/// # Examples
914
0 commit comments