File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1515//! moving the values they contain: you can move out of a `Box<T>`, or you can use [`mem::swap`].
1616//! [`Pin<P>`] wraps a pointer type `P`, so `Pin<Box<T>>` functions much like a regular `Box<T>`:
1717//! when a `Pin<Box<T>>` gets dropped, so do its contents, and the memory gets deallocated.
18- //! Similarily, `Pin<&mut T>` is a lot like `&mut T`. However, [`Pin<P>`] does not let clients actually
19- //! obtain a `Box<T>` or `&mut T` to pinned data, which implies that you cannot use
18+ //! Similarily, `Pin<&mut T>` is a lot like `&mut T`. However, [`Pin<P>`] does not let clients
19+ //! actually obtain a `Box<T>` or `&mut T` to pinned data, which implies that you cannot use
2020//! operations such as [`mem::swap`]:
2121//! ```
2222//! use std::pin::Pin;
You can’t perform that action at this time.
0 commit comments