diff options
| author | cuishuang <imcusg@gmail.com> | 2024-09-02 18:14:06 +0800 |
|---|---|---|
| committer | cuishuang <imcusg@gmail.com> | 2024-09-02 19:02:28 +0800 |
| commit | 25c4aa8979a39ea7c6e7af57093be64c36936b2b (patch) | |
| tree | f9c020cd699ec8a3fc394a52b64687b73bc71cb8 | |
| parent | 9b82580c7347f800c2550e6719e4218a60a80b28 (diff) | |
| download | rust-25c4aa8979a39ea7c6e7af57093be64c36936b2b.tar.gz rust-25c4aa8979a39ea7c6e7af57093be64c36936b2b.zip | |
chore: remove repetitive words
Signed-off-by: cuishuang <imcusg@gmail.com>
| -rw-r--r-- | library/core/src/mem/transmutability.rs | 2 | ||||
| -rw-r--r-- | library/std/src/sync/reentrant_lock.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/mem/transmutability.rs b/library/core/src/mem/transmutability.rs index 049b32ede9c..cda999a7f0c 100644 --- a/library/core/src/mem/transmutability.rs +++ b/library/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/library/std/src/sync/reentrant_lock.rs b/library/std/src/sync/reentrant_lock.rs index 84a0b36db17..0b23681e907 100644 --- a/library/std/src/sync/reentrant_lock.rs +++ b/library/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 <https://github.com/rust-lang/miri/issues/3450>) |
