Skip to content
/ rust Public
forked from rust-lang/rust

Commit

Permalink
Rollup merge of rust-lang#136039 - nvanbenschoten:pin-typo, r=Amanieu
Browse files Browse the repository at this point in the history
docs: fix typo in std::pin overview

Unimportant fix in `std::pin` documentation.
  • Loading branch information
matthiaskrgr authored Jan 25, 2025
2 parents dbe911a + 83c09ff commit 65fb628
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/core/src/pin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@
//!
//! 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
//! sounds an awful lot like the definition of *pinning* a value). There a few ways one might be
//! able to enforce this invariant in Rust:
//! sounds an awful lot like the definition of *pinning* a value). There are a few ways one might
//! be able to enforce this invariant in Rust:
//!
//! 1. Offer a wholly `unsafe` API to interact with the object, thus requiring every caller to
//! uphold the invariant themselves
Expand Down

0 comments on commit 65fb628

Please sign in to comment.