about summary refs log tree commit diff
path: root/compiler
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2021-04-13 11:10:44 +0200
committerGitHub <noreply@github.com>2021-04-13 11:10:44 +0200
commit91c08288c4369fd746bfb334d4eecb403c61203e (patch)
treec0efb20ea73912dceab73fe0dfabbf5712c0e24b /compiler
parente40d7e6d8453013b25f079c577e4a3a5c7c3ab1b (diff)
parent1e2635815f851cc3322af84ca1e521afc3763ca9 (diff)
downloadrust-91c08288c4369fd746bfb334d4eecb403c61203e.tar.gz
rust-91c08288c4369fd746bfb334d4eecb403c61203e.zip
Rollup merge of #84141 - camelid:fix-typo, r=Dylan-DPC
Fix typo in error message

Also tweaked the message a bit by

- removing the hyphen, because in my opinion the hyphen makes the
  message a bit harder to read, especially combined with the backticks;
- adding the word "be", because I think it's a bit clearer that way.
Diffstat (limited to 'compiler')
-rw-r--r--compiler/rustc_typeck/src/astconv/generics.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_typeck/src/astconv/generics.rs b/compiler/rustc_typeck/src/astconv/generics.rs
index 845375f3e32..7a297f2c65f 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 be a `const` generic",
                                 format!("const {}: {}", param_name, param_type),
                                 Applicability::MaybeIncorrect,
                             );