adjust PinMut import in Unpin docs

This commit is contained in:
Niv Kaminer 2018-08-23 01:02:29 +03:00
parent c3fd65ba23
commit 3683bf279d

View File

@ -620,7 +620,8 @@ unsafe impl<'a, T: ?Sized> Freeze for &'a mut T {}
///
/// ```rust
/// #![feature(pin)]
/// use std::mem::{PinMut, replace};
/// use std::mem::replace;
/// use std::pin::PinMut;
///
/// let mut string = "this".to_string();
/// let mut pinned_string = PinMut::new(&mut string);