diff options
| author | Niv Kaminer <nivkner@zoho.com> | 2018-08-23 01:02:29 +0300 |
|---|---|---|
| committer | Niv Kaminer <nivkner@zoho.com> | 2018-08-23 02:13:02 +0300 |
| commit | 3683bf279d5f27ff1bdeb6e0359f9140679526ba (patch) | |
| tree | 14659935e3b92d83bfb7b49ec085dd5e99f8d53b | |
| parent | c3fd65ba23ab6bc7e99897bd65b069144424f48a (diff) | |
| download | rust-3683bf279d5f27ff1bdeb6e0359f9140679526ba.tar.gz rust-3683bf279d5f27ff1bdeb6e0359f9140679526ba.zip | |
adjust PinMut import in Unpin docs
| -rw-r--r-- | src/libcore/marker.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libcore/marker.rs b/src/libcore/marker.rs index 419170ca5ab..191634a9930 100644 --- a/src/libcore/marker.rs +++ b/src/libcore/marker.rs @@ -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); |
