about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2025-07-30 08:01:10 +0000
committerGitHub <noreply@github.com>2025-07-30 08:01:10 +0000
commit18e8ac3778a2859d412c34b0ff7a1f15c07c9103 (patch)
tree5f55da7b13518b247169cf664e40d7dc62f783cf
parent436efbba909f1ea62070cd46378e0aee255af5a6 (diff)
parent64276e688c464c4d02a9be6357ca0157167ea075 (diff)
downloadrust-18e8ac3778a2859d412c34b0ff7a1f15c07c9103.tar.gz
rust-18e8ac3778a2859d412c34b0ff7a1f15c07c9103.zip
chore: fix some minor issues in comments (#15372)
fix some minor issues in comments

changelog:none
-rw-r--r--clippy_lints/src/infallible_try_from.rs2
-rw-r--r--tests/ui/manual_strip.rs2
-rw-r--r--tests/ui/manual_unwrap_or_default.fixed2
-rw-r--r--tests/ui/manual_unwrap_or_default.rs2
4 files changed, 4 insertions, 4 deletions
diff --git a/clippy_lints/src/infallible_try_from.rs b/clippy_lints/src/infallible_try_from.rs
index f7cdf05359a..fba11adcd62 100644
--- a/clippy_lints/src/infallible_try_from.rs
+++ b/clippy_lints/src/infallible_try_from.rs
@@ -13,7 +13,7 @@ declare_clippy_lint! {
     ///
     /// ### Why is this bad?
     ///
-    /// Infalliable conversions should be implemented via `From` with the blanket conversion.
+    /// Infallible conversions should be implemented via `From` with the blanket conversion.
     ///
     /// ### Example
     /// ```no_run
diff --git a/tests/ui/manual_strip.rs b/tests/ui/manual_strip.rs
index 086b75a3987..0fdaa1c045e 100644
--- a/tests/ui/manual_strip.rs
+++ b/tests/ui/manual_strip.rs
@@ -75,7 +75,7 @@ fn main() {
         s4[2..].to_string();
     }
 
-    // Don't propose to reuse the `stripped` identifier as it is overriden
+    // Don't propose to reuse the `stripped` identifier as it is overridden
     if s.starts_with("ab") {
         let stripped = &s["ab".len()..];
         //~^ ERROR: stripping a prefix manually
diff --git a/tests/ui/manual_unwrap_or_default.fixed b/tests/ui/manual_unwrap_or_default.fixed
index 41ca44ceef4..189fe876aa5 100644
--- a/tests/ui/manual_unwrap_or_default.fixed
+++ b/tests/ui/manual_unwrap_or_default.fixed
@@ -102,7 +102,7 @@ fn issue_12928() {
     let y = if let Some(Y(a, ..)) = x { a } else { 0 };
 }
 
-// For symetry with `manual_unwrap_or` test
+// For symmetry with `manual_unwrap_or` test
 fn allowed_manual_unwrap_or_zero() -> u32 {
     Some(42).unwrap_or_default()
 }
diff --git a/tests/ui/manual_unwrap_or_default.rs b/tests/ui/manual_unwrap_or_default.rs
index 343fbc4879c..ca87926763c 100644
--- a/tests/ui/manual_unwrap_or_default.rs
+++ b/tests/ui/manual_unwrap_or_default.rs
@@ -138,7 +138,7 @@ fn issue_12928() {
     let y = if let Some(Y(a, ..)) = x { a } else { 0 };
 }
 
-// For symetry with `manual_unwrap_or` test
+// For symmetry with `manual_unwrap_or` test
 fn allowed_manual_unwrap_or_zero() -> u32 {
     if let Some(x) = Some(42) {
         //~^ manual_unwrap_or_default