about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJoel Natividad <1980690+jqnatividad@users.noreply.github.com>2024-04-10 08:37:02 -0400
committerJoel Natividad <1980690+jqnatividad@users.noreply.github.com>2024-04-10 08:37:02 -0400
commite5b6d433fbff84875336a5d58fc18da5a7004847 (patch)
treee45464dd793575e3cbd5588ae8f7c2014176c7d3
parent62fd1d5377c0bb917761b9fff4a2851d8921d932 (diff)
downloadrust-e5b6d433fbff84875336a5d58fc18da5a7004847.tar.gz
rust-e5b6d433fbff84875336a5d58fc18da5a7004847.zip
fix various comment typos
-rw-r--r--clippy_lints/src/legacy_numeric_constants.rs2
-rw-r--r--clippy_utils/src/lib.rs2
-rw-r--r--tests/ui/unconditional_recursion.rs2
3 files changed, 3 insertions, 3 deletions
diff --git a/clippy_lints/src/legacy_numeric_constants.rs b/clippy_lints/src/legacy_numeric_constants.rs
index c5f1afe68c3..00124dcdd91 100644
--- a/clippy_lints/src/legacy_numeric_constants.rs
+++ b/clippy_lints/src/legacy_numeric_constants.rs
@@ -17,7 +17,7 @@ declare_clippy_lint! {
     /// `std::<float>::EPSILON`, etc.
     ///
     /// ### Why is this bad?
-    /// All of these have been superceded by the associated constants on their respective types,
+    /// All of these have been superseded by the associated constants on their respective types,
     /// such as `i128::MAX`. These legacy items may be deprecated in a future version of rust.
     ///
     /// ### Example
diff --git a/clippy_utils/src/lib.rs b/clippy_utils/src/lib.rs
index 37c12dd850c..a13885b022f 100644
--- a/clippy_utils/src/lib.rs
+++ b/clippy_utils/src/lib.rs
@@ -3285,7 +3285,7 @@ fn maybe_get_relative_path(from: &DefPath, to: &DefPath, max_super: usize) -> St
             Right(r) => Right(r.data),
         });
 
-    // 2. for the remaning segments, construct relative path using only mod names and `super`
+    // 2. for the remaining segments, construct relative path using only mod names and `super`
     let mut go_up_by = 0;
     let mut path = Vec::new();
     for el in unique_parts {
diff --git a/tests/ui/unconditional_recursion.rs b/tests/ui/unconditional_recursion.rs
index 70b390b00e2..a51fc567f50 100644
--- a/tests/ui/unconditional_recursion.rs
+++ b/tests/ui/unconditional_recursion.rs
@@ -266,7 +266,7 @@ struct S13 {
 
 impl S13 {
     fn new() -> Self {
-        // Shoud not warn!
+        // Should not warn!
         Self::default()
     }
 }