if let Some(gen_span) = generics.span_for_param_suggestion() {
diag.span_suggestion_with_style(
gen_span,
- "add a type paremeter",
+ "add a type parameter",
format!(", {{ /* Generic name */ }}: {}", ¶m.name.ident().as_str()[5..]),
rustc_errors::Applicability::HasPlaceholders,
rustc_errors::SuggestionStyle::ShowAlways,
ident.span.ctxt(),
ident.span.parent(),
),
- "add a type paremeter",
+ "add a type parameter",
format!("<{{ /* Generic name */ }}: {}>", ¶m.name.ident().as_str()[5..]),
rustc_errors::Applicability::HasPlaceholders,
rustc_errors::SuggestionStyle::ShowAlways,