diff options
| author | Frank Steffahn <fdsteffahn@gmail.com> | 2022-09-22 01:28:45 +0200 |
|---|---|---|
| committer | Frank Steffahn <fdsteffahn@gmail.com> | 2022-09-22 01:28:45 +0200 |
| commit | 696472a5867dafa35c5262da709677075fab9dc8 (patch) | |
| tree | 471a12d4f03816b177dab2baea1e39ac664edaee | |
| parent | db4b4d3becf257e7b1c051540fc7e317958d8d2d (diff) | |
| download | rust-696472a5867dafa35c5262da709677075fab9dc8.tar.gz rust-696472a5867dafa35c5262da709677075fab9dc8.zip | |
Fix a typo in error message
| -rw-r--r-- | compiler/rustc_resolve/src/late/diagnostics.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_resolve/src/late/diagnostics.rs b/compiler/rustc_resolve/src/late/diagnostics.rs index c3c9b0b5617..3c276a9ada9 100644 --- a/compiler/rustc_resolve/src/late/diagnostics.rs +++ b/compiler/rustc_resolve/src/late/diagnostics.rs @@ -173,7 +173,7 @@ impl<'a: 'ast, 'ast> LateResolutionVisitor<'a, '_, 'ast> { span, span_label: match res { Res::Def(kind, def_id) if kind == DefKind::TyParam => { - self.def_span(def_id).map(|span| (span, "found this type pararmeter")) + self.def_span(def_id).map(|span| (span, "found this type parameter")) } _ => None, }, |
