diff options
| -rw-r--r-- | src/libcore/pin.rs | 2 |
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); //! ``` //! |
