From b91ab6287952e8ff4f6d6765ed5196825027c903 Mon Sep 17 00:00:00 2001 From: Taeguk Kwon Date: Tue, 5 Mar 2019 23:08:01 +0900 Subject: [PATCH] Fix a tiny error in documentation of std::pin. --- src/libcore/pin.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); //! ``` //!