diff --git a/src/libcore/pin.rs b/src/libcore/pin.rs index 697c352550f..ff10c33681d 100644 --- a/src/libcore/pin.rs +++ b/src/libcore/pin.rs @@ -15,8 +15,8 @@ //! moving the values they contain: you can move out of a `Box`, or you can use [`mem::swap`]. //! [`Pin

`] wraps a pointer type `P`, so `Pin>` functions much like a regular `Box`: //! when a `Pin>` gets dropped, so do its contents, and the memory gets deallocated. -//! Similarily, `Pin<&mut T>` is a lot like `&mut T`. However, [`Pin

`] does not let clients actually -//! obtain a `Box` or `&mut T` to pinned data, which implies that you cannot use +//! Similarily, `Pin<&mut T>` is a lot like `&mut T`. However, [`Pin

`] does not let clients +//! actually obtain a `Box` or `&mut T` to pinned data, which implies that you cannot use //! operations such as [`mem::swap`]: //! ``` //! use std::pin::Pin;