Skip to content

Commit af8196b

Browse files
committed
Fix doc comment
1 parent 142359c commit af8196b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/librustc/infer/canonical/canonicalizer.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ impl<'cx, 'gcx, 'tcx> Canonicalizer<'cx, 'gcx, 'tcx> {
565565
let var = self.canonical_var(info, r.into());
566566
let region = ty::ReLateBound(
567567
self.binder_index,
568-
ty::BoundRegion::BrAnon(var.index() as u32)
568+
ty::BoundRegion::BrAnon(var.as_u32())
569569
);
570570
self.tcx().mk_region(region)
571571
}

src/librustc/ty/fold.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
539539
}
540540

541541
/// Replace all escaping bound vars. The `fld_r` closure replaces escaping
542-
/// bound regions while the `flr_t` closure replaces escaping bound types.
542+
/// bound regions while the `fld_t` closure replaces escaping bound types.
543543
pub fn replace_escaping_bound_vars<T, F, G>(
544544
self,
545545
value: &T,
@@ -560,7 +560,7 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
560560
}
561561

562562
/// Replace all types or regions bound by the given `Binder`. The `fld_r`
563-
/// closure replaces bound regions while the `flr_t` closure replaces bound
563+
/// closure replaces bound regions while the `fld_t` closure replaces bound
564564
/// types.
565565
pub fn replace_bound_vars<T, F, G>(
566566
self,

0 commit comments

Comments
 (0)