Skip to content

Commit f92c204

Browse files
committed
improve readability
1 parent 4e7d4c7 commit f92c204

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/mem.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -908,7 +908,7 @@ pub fn discriminant<T>(v: &T) -> Discriminant<T> {
908908
/// `ManuallyDrop<T>` is subject to the same layout optimizations as `T`.
909909
/// As a consequence, it has *no effect* on the assumptions that the compiler makes
910910
/// about all values being initialized at their type. In particular, initializing
911-
/// a `ManuallyDrop<&T>` with [`mem::zeroed`] is undefined behavior.
911+
/// a `ManuallyDrop<&mut T>` with [`mem::zeroed`] is undefined behavior.
912912
///
913913
/// # Examples
914914
///

0 commit comments

Comments
 (0)