diff options
| author | León Orell Valerian Liehr <me@fmease.dev> | 2025-02-26 04:15:08 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-26 04:15:08 +0100 |
| commit | 0d4af0861e917e023bff0d28396dd829fed26ea9 (patch) | |
| tree | 5c89dd7f18d8463d93848ed940d427ad1b45dff1 | |
| parent | cf8498d36a614bb2ac669fb43303b0662e9b5225 (diff) | |
| parent | 48483adcb42ea07858800cf9c0be6531e204c6b7 (diff) | |
| download | rust-0d4af0861e917e023bff0d28396dd829fed26ea9.tar.gz rust-0d4af0861e917e023bff0d28396dd829fed26ea9.zip | |
Rollup merge of #137614 - xizheyin:issue-134874, r=cuviper
fix doc in library/core/src/pin.rs Fixes #134874
| -rw-r--r-- | library/core/src/pin.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/pin.rs b/library/core/src/pin.rs index 2a0bf89fcf7..7fcd19f67ee 100644 --- a/library/core/src/pin.rs +++ b/library/core/src/pin.rs @@ -1240,8 +1240,8 @@ impl<Ptr: Deref> Pin<Ptr> { /// points to is pinned, that is a violation of the API contract and may lead to undefined /// behavior in later (even safe) operations. /// - /// By using this method, you are also making a promise about the [`Deref`] and - /// [`DerefMut`] implementations of `Ptr`, if they exist. Most importantly, they + /// By using this method, you are also making a promise about the [`Deref`], + /// [`DerefMut`], and [`Drop`] implementations of `Ptr`, if they exist. Most importantly, they /// must not move out of their `self` arguments: `Pin::as_mut` and `Pin::as_ref` /// will call `DerefMut::deref_mut` and `Deref::deref` *on the pointer type `Ptr`* /// and expect these methods to uphold the pinning invariants. |
