Skip to content

Commit 18e8ac3

Browse files
chore: fix some minor issues in comments (#15372)
fix some minor issues in comments changelog:none
2 parents 436efbb + 64276e6 commit 18e8ac3

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

clippy_lints/src/infallible_try_from.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ declare_clippy_lint! {
1313
///
1414
/// ### Why is this bad?
1515
///
16-
/// Infalliable conversions should be implemented via `From` with the blanket conversion.
16+
/// Infallible conversions should be implemented via `From` with the blanket conversion.
1717
///
1818
/// ### Example
1919
/// ```no_run

tests/ui/manual_strip.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ fn main() {
7575
s4[2..].to_string();
7676
}
7777

78-
// Don't propose to reuse the `stripped` identifier as it is overriden
78+
// Don't propose to reuse the `stripped` identifier as it is overridden
7979
if s.starts_with("ab") {
8080
let stripped = &s["ab".len()..];
8181
//~^ ERROR: stripping a prefix manually

tests/ui/manual_unwrap_or_default.fixed

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ fn issue_12928() {
102102
let y = if let Some(Y(a, ..)) = x { a } else { 0 };
103103
}
104104

105-
// For symetry with `manual_unwrap_or` test
105+
// For symmetry with `manual_unwrap_or` test
106106
fn allowed_manual_unwrap_or_zero() -> u32 {
107107
Some(42).unwrap_or_default()
108108
}

tests/ui/manual_unwrap_or_default.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ fn issue_12928() {
138138
let y = if let Some(Y(a, ..)) = x { a } else { 0 };
139139
}
140140

141-
// For symetry with `manual_unwrap_or` test
141+
// For symmetry with `manual_unwrap_or` test
142142
fn allowed_manual_unwrap_or_zero() -> u32 {
143143
if let Some(x) = Some(42) {
144144
//~^ manual_unwrap_or_default

0 commit comments

Comments
 (0)