Skip to content

Commit 7168aa5

Browse files
Rollup merge of rust-lang#107112 - eltociear:patch-19, r=albertlarsan68
Fix typo in opaque_types.rs paramters -> parameters
2 parents 7565b9a + 1adb4d6 commit 7168aa5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/rustc_infer/src/infer/opaque_types.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ where
479479
}
480480

481481
ty::Alias(ty::Opaque, ty::AliasTy { def_id, ref substs, .. }) => {
482-
// Skip lifetime paramters that are not captures.
482+
// Skip lifetime parameters that are not captures.
483483
let variances = self.tcx.variances_of(*def_id);
484484

485485
for (v, s) in std::iter::zip(variances, substs.iter()) {
@@ -492,7 +492,7 @@ where
492492
ty::Alias(ty::Projection, proj)
493493
if self.tcx.def_kind(proj.def_id) == DefKind::ImplTraitPlaceholder =>
494494
{
495-
// Skip lifetime paramters that are not captures.
495+
// Skip lifetime parameters that are not captures.
496496
let variances = self.tcx.variances_of(proj.def_id);
497497

498498
for (v, s) in std::iter::zip(variances, proj.substs.iter()) {

0 commit comments

Comments
 (0)