Skip to content

Commit ebe798e

Browse files
committed
Fix typos in rustc_infer::infer::nll_relate
1 parent 1b1d85f commit ebe798e

File tree

1 file changed

+2
-2
lines changed
  • compiler/rustc_infer/src/infer/nll_relate

1 file changed

+2
-2
lines changed

compiler/rustc_infer/src/infer/nll_relate/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ where
4444
{
4545
infcx: &'me InferCtxt<'me, 'tcx>,
4646

47-
/// Callback to use when we deduce an outlives relationship
47+
/// Callback to use when we deduce an outlives relationship.
4848
delegate: D,
4949

5050
/// How are we relating `a` and `b`?
@@ -768,7 +768,7 @@ impl<'me, 'tcx> TypeVisitor<'tcx> for ScopeInstantiator<'me, 'tcx> {
768768
}
769769
}
770770

771-
/// The "type generalize" is used when handling inference variables.
771+
/// The "type generalizer" is used when handling inference variables.
772772
///
773773
/// The basic strategy for handling a constraint like `?A <: B` is to
774774
/// apply a "generalization strategy" to the type `B` -- this replaces

0 commit comments

Comments
 (0)