about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-05-11 08:00:16 +0200
committerGitHub <noreply@github.com>2024-05-11 08:00:16 +0200
commit0997891c5461c0efa54ddbc8e052bb1de8f346df (patch)
treeffc0935cfcb73972af251e8386b6672217b61398
parent3c40e383df8a308d49b20e9a913ba3f4dc53de23 (diff)
parent781d73747890e6bca47962721453564cdbcb27a7 (diff)
downloadrust-0997891c5461c0efa54ddbc8e052bb1de8f346df.tar.gz
rust-0997891c5461c0efa54ddbc8e052bb1de8f346df.zip
Rollup merge of #124991 - Infinixius:patch-1, r=Nilstrieb
Fix typo in ManuallyDrop's documentation

```diff
- /// A wrapper to inhibit compiler from automatically calling `T`’s destructor.
+ /// A wrapper to inhibit the compiler from automatically calling `T`’s destructor.
```
-rw-r--r--library/core/src/mem/manually_drop.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/mem/manually_drop.rs b/library/core/src/mem/manually_drop.rs
index 955efb9b0f9..e0c3b9f3b51 100644
--- a/library/core/src/mem/manually_drop.rs
+++ b/library/core/src/mem/manually_drop.rs
@@ -1,7 +1,7 @@
 use crate::ops::{Deref, DerefMut, DerefPure};
 use crate::ptr;
 
-/// A wrapper to inhibit compiler from automatically calling `T`’s destructor.
+/// A wrapper to inhibit the compiler from automatically calling `T`’s destructor.
 /// This wrapper is 0-cost.
 ///
 /// `ManuallyDrop<T>` is guaranteed to have the same layout and bit validity as