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 15
15
//! moving the values they contain: you can move out of a `Box<T>`, or you can use [`mem::swap`].
16
16
//! [`Pin<P>`] wraps a pointer type `P`, so `Pin<Box<T>>` functions much like a regular `Box<T>`:
17
17
//! 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
20
20
//! operations such as [`mem::swap`]:
21
21
//! ```
22
22
//! use std::pin::Pin;
You can’t perform that action at this time.
0 commit comments