File tree 2 files changed +1
-4
lines changed
2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -621,7 +621,6 @@ unsafe impl<T: ?Sized> Freeze for &mut T {}
621
621
/// So this, for example, can only be done on types implementing `Unpin`:
622
622
///
623
623
/// ```rust
624
- /// #![feature(pin)]
625
624
/// use std::mem::replace;
626
625
/// use std::pin::Pin;
627
626
///
Original file line number Diff line number Diff line change 43
43
//! # Examples
44
44
//!
45
45
//! ```rust
46
- //! #![feature(pin)]
47
- //!
48
46
//! use std::pin::Pin;
49
47
//! use std::marker::PhantomPinned;
50
48
//! use std::ptr::NonNull;
78
76
//! // we know this is safe because modifying a field doesn't move the whole struct
79
77
//! unsafe {
80
78
//! let mut_ref: Pin<&mut Self> = Pin::as_mut(&mut boxed);
81
- //! Pin::get_mut_unchecked (mut_ref).slice = slice;
79
+ //! Pin::get_unchecked_mut (mut_ref).slice = slice;
82
80
//! }
83
81
//! boxed
84
82
//! }
You can’t perform that action at this time.
0 commit comments