Skip to content

Commit 148742b

Browse files
authored
Fix broken link for BoundRegion (#998)
1 parent f2e7d46 commit 148742b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/early-late-bound.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ Moreover, a reference to a late-bound lifetime is written `^0.a`:
8989
- The `0` is the index; it identifies that this lifetime is bound in the
9090
innermost binder (the `for`).
9191
- The `a` is the "name"; late-bound lifetimes in rustc are identified by a
92-
"name" -- the [`BoundRegion`] struct. This struct can contain a
92+
"name" -- the [`BoundRegionKind`] enum. This enum can contain a
9393
[`DefId`][defid] or it might have various "anonymous" numbered names. The
9494
latter arise from types like `fn(&u32, &u32)`, which are equivalent to
9595
something like `for<'a, 'b> fn(&'a u32, &'b u32)`, but the names of those
@@ -103,5 +103,5 @@ anonymous regions like in `fn(&u32)`, we just create a fresh index and don't hav
103103
to update the binder.
104104

105105
[`Binder`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/struct.Binder.html
106-
[`BoundRegion`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/enum.BoundRegion.html
106+
[`BoundRegionKind`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/enum.BoundRegionKind.html
107107
[defid]: ./hir.html#identifiers-in-the-hir

0 commit comments

Comments
 (0)