1
Fork 0

docs: fix typo in std::pin overview

This commit is contained in:
Nathan VanBenschoten 2025-01-24 23:26:02 -07:00
parent 814ebca293
commit 83c09ff3bd

View file

@ -156,8 +156,8 @@
//! //!
//! In order to implement the second option, we must in some way enforce its key invariant, //! In order to implement the second option, we must in some way enforce its key invariant,
//! *i.e.* prevent the value from being *moved* or otherwise invalidated (you may notice this //! *i.e.* prevent the value from being *moved* or otherwise invalidated (you may notice this
//! sounds an awful lot like the definition of *pinning* a value). There a few ways one might be //! sounds an awful lot like the definition of *pinning* a value). There are a few ways one might
//! able to enforce this invariant in Rust: //! be able to enforce this invariant in Rust:
//! //!
//! 1. Offer a wholly `unsafe` API to interact with the object, thus requiring every caller to //! 1. Offer a wholly `unsafe` API to interact with the object, thus requiring every caller to
//! uphold the invariant themselves //! uphold the invariant themselves