File tree Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Expand file tree Collapse file tree 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 {}
621621/// So this, for example, can only be done on types implementing `Unpin`:
622622///
623623/// ```rust
624- /// #![feature(pin)]
625624/// use std::mem::replace;
626625/// use std::pin::Pin;
627626///
Original file line number Diff line number Diff line change 4343//! # Examples
4444//!
4545//! ```rust
46- //! #![feature(pin)]
47- //!
4846//! use std::pin::Pin;
4947//! use std::marker::PhantomPinned;
5048//! use std::ptr::NonNull;
7876//! // we know this is safe because modifying a field doesn't move the whole struct
7977//! unsafe {
8078//! 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;
8280//! }
8381//! boxed
8482//! }
You can’t perform that action at this time.
0 commit comments