From 264988240371caabe8a1b48bb3606e97b6f86c21 Mon Sep 17 00:00:00 2001 From: cuishuang Date: Mon, 2 Sep 2024 18:14:06 +0800 Subject: [PATCH] chore: remove repetitive words Signed-off-by: cuishuang --- core/src/mem/transmutability.rs | 2 +- std/src/sync/reentrant_lock.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/mem/transmutability.rs b/core/src/mem/transmutability.rs index 049b32ede9c3d..cda999a7f0c91 100644 --- a/core/src/mem/transmutability.rs +++ b/core/src/mem/transmutability.rs @@ -149,7 +149,7 @@ where #[derive(PartialEq, Eq, Clone, Copy, Debug)] pub struct Assume { /// When `false`, [`TransmuteFrom`] is not implemented for transmutations - /// that might violate the the alignment requirements of references; e.g.: + /// that might violate the alignment requirements of references; e.g.: /// #[cfg_attr(bootstrap, doc = "```rust,ignore not runnable on bootstrap")] #[cfg_attr(not(bootstrap), doc = "```compile_fail,E0277")] diff --git a/std/src/sync/reentrant_lock.rs b/std/src/sync/reentrant_lock.rs index 84a0b36db1798..0b23681e90726 100644 --- a/std/src/sync/reentrant_lock.rs +++ b/std/src/sync/reentrant_lock.rs @@ -136,7 +136,7 @@ cfg_if!( // match do we read out the actual TID. // Note also that we can use relaxed atomic operations here, because // we only ever read from the tid if `tls_addr` matches the current - // TLS address. In that case, either the the tid has been set by + // TLS address. In that case, either the tid has been set by // the current thread, or by a thread that has terminated before // the current thread was created. In either case, no further // synchronization is needed (as per )