From 1d02358705f1c0b6fbcc0ce9fe40771a7a6992d0 Mon Sep 17 00:00:00 2001 From: Ikko Ashimine Date: Sat, 20 Feb 2021 20:44:54 +0900 Subject: [PATCH] Fix typo in generics.rs paramater -> parameter --- compiler/rustc_typeck/src/astconv/generics.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_typeck/src/astconv/generics.rs b/compiler/rustc_typeck/src/astconv/generics.rs index 0ea0ccaceabd4..40afe22673d42 100644 --- a/compiler/rustc_typeck/src/astconv/generics.rs +++ b/compiler/rustc_typeck/src/astconv/generics.rs @@ -82,7 +82,7 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o { if param_type.is_suggestable() { err.span_suggestion( tcx.def_span(src_def_id), - "consider changing this type paramater to a `const`-generic", + "consider changing this type parameter to a `const`-generic", format!("const {}: {}", param_name, param_type), Applicability::MaybeIncorrect, );