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
1 changed files with 1 additions and 1 deletions
|
@ -595,7 +595,7 @@
|
||||||
//! [drop-impl]: self#implementing-drop-for-types-with-address-sensitive-states
|
//! [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
|
//! 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
|
//! indeed in an address-sensitive state before [`drop`] was called, it is as if the compiler
|
||||||
//! automatically called [`Pin::get_unchecked_mut`].
|
//! automatically called [`Pin::get_unchecked_mut`].
|
||||||
//!
|
//!
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue