Auto merge of #9355 - alex-semenyuk:fixed_typos, r=giraffate

Fix typos

changelog: none
This commit is contained in:
bors 2022-08-20 12:49:00 +00:00
commit 0dfec01011
2 changed files with 4 additions and 4 deletions

View file

@ -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;

View file

@ -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.
///