Update library/core/src/pin.rs

Co-authored-by: Ralf Jung <post@ralfj.de>
This commit is contained in:
Manish Goregaokar 2024-01-07 08:33:14 -08:00
parent b1830f130a
commit df6d44961d

View File

@ -790,7 +790,7 @@
//! //!
//! Structural pinning comes with a few extra requirements: //! 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. //! 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 //! 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 //! <code>impl\<T> [Unpin] for Struct\<T> {}</code> and then offer a method that provides