about summary refs log tree commit diff
diff options
context:
space:
mode:
authorcui fliter <imcusg@gmail.com>2023-04-26 00:01:54 +0800
committercui fliter <imcusg@gmail.com>2023-04-27 00:48:00 +0800
commitef6d4c504dd76619c2cd22eaf0ed30e38555de2c (patch)
treef3396122040a8731b17b52fc967947ab13b37ad4
parent20d90b14ffe8c667757a70c08e2d9736ee89f493 (diff)
downloadrust-ef6d4c504dd76619c2cd22eaf0ed30e38555de2c.tar.gz
rust-ef6d4c504dd76619c2cd22eaf0ed30e38555de2c.zip
Remove repeated definite articles
Signed-off-by: cui fliter <imcusg@gmail.com>
-rw-r--r--library/core/src/macros/panic.md2
-rw-r--r--tests/debuginfo/thread.rs2
-rw-r--r--tests/ui/generic-associated-types/self-outlives-lint.rs2
3 files changed, 3 insertions, 3 deletions
diff --git a/library/core/src/macros/panic.md b/library/core/src/macros/panic.md
index 98fb7e9e41d..8b549e187ba 100644
--- a/library/core/src/macros/panic.md
+++ b/library/core/src/macros/panic.md
@@ -42,7 +42,7 @@ the successful result of some computation, `Ok(T)`, or error types that
 represent an anticipated runtime failure mode of that computation, `Err(E)`.
 `Result` is used alongside user defined types which represent the various
 anticipated runtime failure modes that the associated computation could
-encounter. `Result` must be propagated manually, often with the the help of the
+encounter. `Result` must be propagated manually, often with the help of the
 `?` operator and `Try` trait, and they must be reported manually, often with
 the help of the `Error` trait.
 
diff --git a/tests/debuginfo/thread.rs b/tests/debuginfo/thread.rs
index 388d50c5cdc..e7e83c7aacd 100644
--- a/tests/debuginfo/thread.rs
+++ b/tests/debuginfo/thread.rs
@@ -1,4 +1,4 @@
-// Testing the the display of JoinHandle and Thread in cdb.
+// Testing the display of JoinHandle and Thread in cdb.
 
 // cdb-only
 // min-cdb-version: 10.0.18317.1001
diff --git a/tests/ui/generic-associated-types/self-outlives-lint.rs b/tests/ui/generic-associated-types/self-outlives-lint.rs
index 673891fc3d1..0ea81b5aecb 100644
--- a/tests/ui/generic-associated-types/self-outlives-lint.rs
+++ b/tests/ui/generic-associated-types/self-outlives-lint.rs
@@ -189,7 +189,7 @@ trait MultipleMethods {
 }
 
 // We would normally require `Self: 'a`, but we can prove that `Self: 'static`
-// because of the the bounds on the trait, so the bound is proven
+// because of the bounds on the trait, so the bound is proven
 trait Trait: 'static {
     type Assoc<'a>;
     fn make_assoc(_: &u32) -> Self::Assoc<'_>;