about summary refs log tree commit diff
diff options
context:
space:
mode:
authorpudongair <744355276@qq.com>2025-03-26 15:28:51 +0800
committerpudongair <744355276@qq.com>2025-03-26 15:28:51 +0800
commitcf26d82dafc95d73484b5688ccfc4eec8a9d3e52 (patch)
tree2383d7b2caecf8f90ae23a2dd65e9d2e0e3fce62
parent6e8abb5ec65ac50f934df6cf0e8f248dc8e8805e (diff)
downloadrust-cf26d82dafc95d73484b5688ccfc4eec8a9d3e52.tar.gz
rust-cf26d82dafc95d73484b5688ccfc4eec8a9d3e52.zip
chore: remove redundant words in comment
Signed-off-by: pudongair <744355276@qq.com>
-rw-r--r--compiler/rustc_error_codes/src/error_codes/E0207.md2
-rw-r--r--library/core/src/clone.rs2
-rw-r--r--library/core/src/macros/mod.rs4
3 files changed, 4 insertions, 4 deletions
diff --git a/compiler/rustc_error_codes/src/error_codes/E0207.md b/compiler/rustc_error_codes/src/error_codes/E0207.md
index 5b35748f472..f80b0093ecc 100644
--- a/compiler/rustc_error_codes/src/error_codes/E0207.md
+++ b/compiler/rustc_error_codes/src/error_codes/E0207.md
@@ -195,7 +195,7 @@ impl<'a> Contains for Foo {
 Please note that unconstrained lifetime parameters are not supported if they are
 being used by an associated type.
 
-In cases where the associated type's lifetime is meant to be tied to the the
+In cases where the associated type's lifetime is meant to be tied to the
 self type, and none of the methods on the trait need ownership or different
 mutability, then an option is to implement the trait on a borrowed type:
 
diff --git a/library/core/src/clone.rs b/library/core/src/clone.rs
index e0ac0bfc528..64746309861 100644
--- a/library/core/src/clone.rs
+++ b/library/core/src/clone.rs
@@ -427,7 +427,7 @@ pub unsafe trait CloneToUninit {
     /// read or dropped, because even if it was previously valid, it may have been partially
     /// overwritten.
     ///
-    /// The caller may wish to to take care to deallocate the allocation pointed to by `dest`,
+    /// The caller may wish to take care to deallocate the allocation pointed to by `dest`,
     /// if applicable, to avoid a memory leak (but this is not a requirement).
     ///
     /// Implementors should avoid leaking values by, upon unwinding, dropping all component values
diff --git a/library/core/src/macros/mod.rs b/library/core/src/macros/mod.rs
index 5f200b31d1a..c06f1b56399 100644
--- a/library/core/src/macros/mod.rs
+++ b/library/core/src/macros/mod.rs
@@ -1743,8 +1743,8 @@ pub(crate) mod builtin {
         /* compiler built-in */
     }
 
-    /// Provide a list of type aliases and other opaque-type-containing type definitions.
-    /// This list will be used in the body of the item it is applied to define opaque
+    /// Provide a list of type aliases and other opaque-type-containing type definitions
+    /// to an item with a body. This list will be used in that body to define opaque
     /// types' hidden types.
     /// Can only be applied to things that have bodies.
     #[unstable(