summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-12-29 21:18:07 +0100
committerGitHub <noreply@github.com>2024-12-29 21:18:07 +0100
commitd45cb76edc59e49c408d5ba4787bd2f955890cd7 (patch)
tree978619a03b9703e224e78036c3ba45f49cda6cd2
parent5c0a6e68cfdad859615c2888de76505f13e6f01b (diff)
parent0c2f4359fdb8c556af298e835d3828d7c0b4e658 (diff)
downloadrust-d45cb76edc59e49c408d5ba4787bd2f955890cd7.tar.gz
rust-d45cb76edc59e49c408d5ba4787bd2f955890cd7.zip
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.
-rw-r--r--library/core/src/pin.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/pin.rs b/library/core/src/pin.rs
index f18a45083ff..83730285636 100644
--- a/library/core/src/pin.rs
+++ b/library/core/src/pin.rs
@@ -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`].
 //!