about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2023-01-20 21:33:23 -0500
committerGitHub <noreply@github.com>2023-01-20 21:33:23 -0500
commit7168aa5eb10e0c7e879b76152b659143015772ec (patch)
tree6f86dc63200e7755efa1009a118a863a84814563
parent7565b9aa4a8707a265e0111f40c14bbc8a3e42df (diff)
parent1adb4d6e5f5d242459655a6ef071669422ce0019 (diff)
downloadrust-7168aa5eb10e0c7e879b76152b659143015772ec.tar.gz
rust-7168aa5eb10e0c7e879b76152b659143015772ec.zip
Rollup merge of #107112 - eltociear:patch-19, r=albertlarsan68
Fix typo in opaque_types.rs

paramters -> parameters
-rw-r--r--compiler/rustc_infer/src/infer/opaque_types.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_infer/src/infer/opaque_types.rs b/compiler/rustc_infer/src/infer/opaque_types.rs
index e22ba9785e1..c54c66eab27 100644
--- a/compiler/rustc_infer/src/infer/opaque_types.rs
+++ b/compiler/rustc_infer/src/infer/opaque_types.rs
@@ -479,7 +479,7 @@ where
             }
 
             ty::Alias(ty::Opaque, ty::AliasTy { def_id, ref substs, .. }) => {
-                // Skip lifetime paramters that are not captures.
+                // Skip lifetime parameters that are not captures.
                 let variances = self.tcx.variances_of(*def_id);
 
                 for (v, s) in std::iter::zip(variances, substs.iter()) {
@@ -492,7 +492,7 @@ where
             ty::Alias(ty::Projection, proj)
                 if self.tcx.def_kind(proj.def_id) == DefKind::ImplTraitPlaceholder =>
             {
-                // Skip lifetime paramters that are not captures.
+                // Skip lifetime parameters that are not captures.
                 let variances = self.tcx.variances_of(proj.def_id);
 
                 for (v, s) in std::iter::zip(variances, proj.substs.iter()) {