Skip to content

Commit 0dfec01

Browse files
committed
Auto merge of rust-lang#9355 - alex-semenyuk:fixed_typos, r=giraffate
Fix typos changelog: none
2 parents 2091142 + 2781ad0 commit 0dfec01

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

clippy_lints/src/manual_empty_string_creations.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ fn warn_then_suggest(cx: &LateContext<'_>, span: Span) {
8888
);
8989
}
9090

91-
/// Tries to parse an expression as a method call, emiting the warning if necessary.
91+
/// Tries to parse an expression as a method call, emitting the warning if necessary.
9292
fn parse_method_call(cx: &LateContext<'_>, span: Span, path_segment: &PathSegment<'_>, args: &[Expr<'_>]) {
9393
if args.is_empty() {
9494
// 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
106106
}
107107
}
108108

109-
/// Tries to parse an expression as a function call, emiting the warning if necessary.
109+
/// Tries to parse an expression as a function call, emitting the warning if necessary.
110110
fn parse_call(cx: &LateContext<'_>, span: Span, func: &Expr<'_>, args: &[Expr<'_>]) {
111111
if args.len() != 1 {
112112
return;

clippy_utils/src/macros.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ pub enum FormatParamKind {
567567
Numbered,
568568
/// A named parameter with a named `value_arg`, such as the `x` in `format!("{x}", x = 1)`.
569569
Named(Symbol),
570-
/// An implicit named paramter, such as the `y` in `format!("{y}")`.
570+
/// An implicit named parameter, such as the `y` in `format!("{y}")`.
571571
NamedInline(Symbol),
572572
}
573573

@@ -584,7 +584,7 @@ pub enum FormatParamKind {
584584
pub struct FormatParam<'tcx> {
585585
/// The expression this parameter refers to.
586586
pub value: &'tcx Expr<'tcx>,
587-
/// How this paramter refers to its `value`.
587+
/// How this parameter refers to its `value`.
588588
pub kind: FormatParamKind,
589589
/// Span of the parameter, may be zero width. Includes the whitespace of implicit parameters.
590590
///

0 commit comments

Comments
 (0)