about summary refs log tree commit diff
path: root/src/doc/rustc-dev-guide
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev@gmail.com>2020-12-31 09:13:49 +0900
committerGitHub <noreply@github.com>2020-12-31 01:13:49 +0100
commitbcee60a6e30edca169e95a7edf79e98335a3e11f (patch)
tree53ef52f42d99dfe8854949fa0879cab5c0aebe35 /src/doc/rustc-dev-guide
parent1189701516fdeb9137a816badb75c5616a220197 (diff)
downloadrust-bcee60a6e30edca169e95a7edf79e98335a3e11f.tar.gz
rust-bcee60a6e30edca169e95a7edf79e98335a3e11f.zip
Fix broken link for `BoundRegion` (#998)
Diffstat (limited to 'src/doc/rustc-dev-guide')
-rw-r--r--src/doc/rustc-dev-guide/src/early-late-bound.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/rustc-dev-guide/src/early-late-bound.md b/src/doc/rustc-dev-guide/src/early-late-bound.md
index a703cbab5dd..973306b86ae 100644
--- a/src/doc/rustc-dev-guide/src/early-late-bound.md
+++ b/src/doc/rustc-dev-guide/src/early-late-bound.md
@@ -89,7 +89,7 @@ Moreover, a reference to a late-bound lifetime is written `^0.a`:
 - The `0` is the index; it identifies that this lifetime is bound in the
   innermost binder (the `for`).
 - The `a` is the "name"; late-bound lifetimes in rustc are identified by a
-  "name" -- the [`BoundRegion`] struct. This struct can contain a
+  "name" -- the [`BoundRegionKind`] enum. This enum can contain a
   [`DefId`][defid] or it might have various "anonymous" numbered names. The
   latter arise from types like `fn(&u32, &u32)`, which are equivalent to
   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
 to update the binder.
 
 [`Binder`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/struct.Binder.html
-[`BoundRegion`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/enum.BoundRegion.html
+[`BoundRegionKind`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/enum.BoundRegionKind.html
 [defid]: ./hir.html#identifiers-in-the-hir