mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-21 17:52:12 +03:00
Fix doc comment
This commit is contained in:
@@ -565,7 +565,7 @@ fn canonical_var_for_region(
|
||||
let var = self.canonical_var(info, r.into());
|
||||
let region = ty::ReLateBound(
|
||||
self.binder_index,
|
||||
ty::BoundRegion::BrAnon(var.index() as u32)
|
||||
ty::BoundRegion::BrAnon(var.as_u32())
|
||||
);
|
||||
self.tcx().mk_region(region)
|
||||
}
|
||||
|
||||
@@ -539,7 +539,7 @@ pub fn replace_late_bound_regions<T, F>(
|
||||
}
|
||||
|
||||
/// Replace all escaping bound vars. The `fld_r` closure replaces escaping
|
||||
/// bound regions while the `flr_t` closure replaces escaping bound types.
|
||||
/// bound regions while the `fld_t` closure replaces escaping bound types.
|
||||
pub fn replace_escaping_bound_vars<T, F, G>(
|
||||
self,
|
||||
value: &T,
|
||||
@@ -560,7 +560,7 @@ pub fn replace_escaping_bound_vars<T, F, G>(
|
||||
}
|
||||
|
||||
/// Replace all types or regions bound by the given `Binder`. The `fld_r`
|
||||
/// closure replaces bound regions while the `flr_t` closure replaces bound
|
||||
/// closure replaces bound regions while the `fld_t` closure replaces bound
|
||||
/// types.
|
||||
pub fn replace_bound_vars<T, F, G>(
|
||||
self,
|
||||
|
||||
Reference in New Issue
Block a user