Skip to content

Commit 42c7f52

Browse files
authored
Rollup merge of #153569 - abh1nav10:fix-pin-docs, r=joboet
Fix grammar in Pin documentation Changed "has an address-sensitive" to "has address-sensitive states" in the `Drop` implementation section of the documentation of `Pin` thereby making it grammatically complete.
2 parents 12d320f + 4916314 commit 42c7f52

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

library/core/src/pin.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@
600600
//! automatically called [`Pin::get_unchecked_mut`].
601601
//!
602602
//! This can never cause a problem in purely safe code because creating a pinning pointer to
603-
//! a type which has an address-sensitive (thus does not implement `Unpin`) requires `unsafe`,
603+
//! a type which has address-sensitive states (and thus does not implement `Unpin`) requires `unsafe`,
604604
//! but it is important to note that choosing to take advantage of pinning-related guarantees
605605
//! to justify validity in the implementation of your type has consequences for that type's
606606
//! [`Drop`][Drop] implementation as well: if an element of your type could have been pinned,

0 commit comments

Comments
 (0)