Skip to content

Commit 3683bf2

Browse files
committed
adjust PinMut import in Unpin docs
1 parent c3fd65b commit 3683bf2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/libcore/marker.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,8 @@ unsafe impl<'a, T: ?Sized> Freeze for &'a mut T {}
620620
///
621621
/// ```rust
622622
/// #![feature(pin)]
623-
/// use std::mem::{PinMut, replace};
623+
/// use std::mem::replace;
624+
/// use std::pin::PinMut;
624625
///
625626
/// let mut string = "this".to_string();
626627
/// let mut pinned_string = PinMut::new(&mut string);

0 commit comments

Comments
 (0)