about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2019-02-27 18:58:19 +0100
committerRalf Jung <post@ralfj.de>2019-02-27 18:58:19 +0100
commitf92c20426ea5f5ddcc6dcf73dbe0739d3d76b614 (patch)
tree69fdd6073422d2aa41634b0d34725627477aaf72 /src/libcore
parent4e7d4c7778a00371ba707fb8f9022bcbb443bb29 (diff)
downloadrust-f92c20426ea5f5ddcc6dcf73dbe0739d3d76b614.tar.gz
rust-f92c20426ea5f5ddcc6dcf73dbe0739d3d76b614.zip
improve readability
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/mem.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/mem.rs b/src/libcore/mem.rs
index 6b1b91d00fa..f78213ba9f6 100644
--- a/src/libcore/mem.rs
+++ b/src/libcore/mem.rs
@@ -908,7 +908,7 @@ pub fn discriminant<T>(v: &T) -> Discriminant<T> {
 /// `ManuallyDrop<T>` is subject to the same layout optimizations as `T`.
 /// As a consequence, it has *no effect* on the assumptions that the compiler makes
 /// about all values being initialized at their type.  In particular, initializing
-/// a `ManuallyDrop<&T>` with [`mem::zeroed`] is undefined behavior.
+/// a `ManuallyDrop<&mut T>` with [`mem::zeroed`] is undefined behavior.
 ///
 /// # Examples
 ///