about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTaeguk Kwon <xornrbboy@gmail.com>2019-03-05 23:08:01 +0900
committerGitHub <noreply@github.com>2019-03-05 23:08:01 +0900
commitb91ab6287952e8ff4f6d6765ed5196825027c903 (patch)
tree9abb0702bbb452b005fdb57b0c3b010d8fda0a24
parentf22dca0a1bef4141e75326caacc3cd59f3d5be8e (diff)
Fix a tiny error in documentation of std::pin.
-rw-r--r--src/libcore/pin.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/pin.rs b/src/libcore/pin.rs
index fb78f5e5a23..8da24c04510 100644
--- a/src/libcore/pin.rs
+++ b/src/libcore/pin.rs
@@ -109,7 +109,7 @@
 //! assert_eq!(still_unmoved.slice, NonNull::from(&still_unmoved.data));
 //!
 //! // Since our type doesn't implement Unpin, this will fail to compile:
-//! // let new_unmoved = Unmovable::new("world".to_string());
+//! // let mut new_unmoved = Unmovable::new("world".to_string());
 //! // std::mem::swap(&mut *still_unmoved, &mut *new_unmoved);
 //! ```
 //!