mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
Rollup merge of #134870 - geofft:patch-1, r=jhpratt
Fix sentence fragment in `pin` module docs
Looks like this was inadvertently dropped in 8241ca60
. Restore the words from before that commit.
This commit is contained in:
commit
d45cb76edc
@ -595,7 +595,7 @@
|
||||
//! [drop-impl]: self#implementing-drop-for-types-with-address-sensitive-states
|
||||
//!
|
||||
//! The [`drop`] function takes [`&mut self`], but this is called *even if that `self` has been
|
||||
//! pinned*! Implementing [`Drop`] for a type with address-sensitive states, because if `self` was
|
||||
//! pinned*! Implementing [`Drop`] for a type with address-sensitive states requires some care, because if `self` was
|
||||
//! indeed in an address-sensitive state before [`drop`] was called, it is as if the compiler
|
||||
//! automatically called [`Pin::get_unchecked_mut`].
|
||||
//!
|
||||
|
Loading…
Reference in New Issue
Block a user