diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2024-01-07 08:33:14 -0800 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2024-01-07 08:56:25 -0800 |
| commit | df6d44961d6f05b7c51189dcce3b05c4fb9ced63 (patch) | |
| tree | 64cc9a8909f5bbb1ddb334d9c425eb24d6d6c63c | |
| parent | b1830f130a0ccd06cd43ac5f2c09ed669e5b1d3b (diff) | |
| download | rust-df6d44961d6f05b7c51189dcce3b05c4fb9ced63.tar.gz rust-df6d44961d6f05b7c51189dcce3b05c4fb9ced63.zip | |
Update library/core/src/pin.rs
Co-authored-by: Ralf Jung <post@ralfj.de>
| -rw-r--r-- | library/core/src/pin.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/pin.rs b/library/core/src/pin.rs index 15f5d7ce19c..ef29e3f373a 100644 --- a/library/core/src/pin.rs +++ b/library/core/src/pin.rs @@ -790,7 +790,7 @@ //! //! Structural pinning comes with a few extra requirements: //! -//! 1. *Structural [`Unpin`].* A struct can be [`Unpin`] if, and only if, all of its +//! 1. *Structural [`Unpin`].* A struct can be [`Unpin`] only if all of its //! structurally-pinned fields are, too. This is [`Unpin`]'s behavior by default. //! However, as a libray author, it is your responsibility not to write something like //! <code>impl\<T> [Unpin] for Struct\<T> {}</code> and then offer a method that provides |
