about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-08-20 12:49:00 +0000
committerbors <bors@rust-lang.org>2022-08-20 12:49:00 +0000
commit0dfec010110acef86eb880e5f4ee0aba09217018 (patch)
tree284704dfc104b9c580660ace44ba42ac18351e21
parent2091142f5d91f802b964d54abad414d3df5c2e98 (diff)
parent2781ad0e9ee9aaf827ff2e089cfad377892d9e74 (diff)
downloadrust-0dfec010110acef86eb880e5f4ee0aba09217018.tar.gz
rust-0dfec010110acef86eb880e5f4ee0aba09217018.zip
Auto merge of #9355 - alex-semenyuk:fixed_typos, r=giraffate
Fix typos

changelog: none
-rw-r--r--clippy_lints/src/manual_empty_string_creations.rs4
-rw-r--r--clippy_utils/src/macros.rs4
2 files changed, 4 insertions, 4 deletions
diff --git a/clippy_lints/src/manual_empty_string_creations.rs b/clippy_lints/src/manual_empty_string_creations.rs
index dd602a89b4f..a2a10eb91e5 100644
--- a/clippy_lints/src/manual_empty_string_creations.rs
+++ b/clippy_lints/src/manual_empty_string_creations.rs
@@ -88,7 +88,7 @@ fn warn_then_suggest(cx: &LateContext<'_>, span: Span) {
     );
 }
 
-/// Tries to parse an expression as a method call, emiting the warning if necessary.
+/// Tries to parse an expression as a method call, emitting the warning if necessary.
 fn parse_method_call(cx: &LateContext<'_>, span: Span, path_segment: &PathSegment<'_>, args: &[Expr<'_>]) {
     if args.is_empty() {
         // When parsing TryFrom::try_from(...).expect(...), we will have more than 1 arg.
@@ -106,7 +106,7 @@ fn parse_method_call(cx: &LateContext<'_>, span: Span, path_segment: &PathSegmen
     }
 }
 
-/// Tries to parse an expression as a function call, emiting the warning if necessary.
+/// Tries to parse an expression as a function call, emitting the warning if necessary.
 fn parse_call(cx: &LateContext<'_>, span: Span, func: &Expr<'_>, args: &[Expr<'_>]) {
     if args.len() != 1 {
         return;
diff --git a/clippy_utils/src/macros.rs b/clippy_utils/src/macros.rs
index 37d8f1e458d..e5ca3545540 100644
--- a/clippy_utils/src/macros.rs
+++ b/clippy_utils/src/macros.rs
@@ -567,7 +567,7 @@ pub enum FormatParamKind {
     Numbered,
     /// A named parameter with a named `value_arg`, such as the `x` in `format!("{x}", x = 1)`.
     Named(Symbol),
-    /// An implicit named paramter, such as the `y` in `format!("{y}")`.
+    /// An implicit named parameter, such as the `y` in `format!("{y}")`.
     NamedInline(Symbol),
 }
 
@@ -584,7 +584,7 @@ pub enum FormatParamKind {
 pub struct FormatParam<'tcx> {
     /// The expression this parameter refers to.
     pub value: &'tcx Expr<'tcx>,
-    /// How this paramter refers to its `value`.
+    /// How this parameter refers to its `value`.
     pub kind: FormatParamKind,
     /// Span of the parameter, may be zero width. Includes the whitespace of implicit parameters.
     ///