about summary refs log tree commit diff
path: root/src/doc/rustc-dev-guide
diff options
context:
space:
mode:
authorYoungsuk_Kim <ykim837@gatech.edu>2020-09-25 22:50:50 -0400
committerJoshua Nelson <joshua@yottadb.com>2020-09-25 22:55:49 -0400
commit14fc590808f7c6530fbd6762fd76fa04d00b249b (patch)
treeb70bce37c79db2e78666f2618ead2b118de6a4da /src/doc/rustc-dev-guide
parent34cfcbcf2628272f830e24107f8e6950d039e298 (diff)
downloadrust-14fc590808f7c6530fbd6762fd76fa04d00b249b.tar.gz
rust-14fc590808f7c6530fbd6762fd76fa04d00b249b.zip
update link to 'BorrowKind' to be implicit in markdown
Diffstat (limited to 'src/doc/rustc-dev-guide')
-rw-r--r--src/doc/rustc-dev-guide/src/closure.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/rustc-dev-guide/src/closure.md b/src/doc/rustc-dev-guide/src/closure.md
index f357eed9ccc..3b535040e8e 100644
--- a/src/doc/rustc-dev-guide/src/closure.md
+++ b/src/doc/rustc-dev-guide/src/closure.md
@@ -183,10 +183,10 @@ The callbacks are defined by implementing the [`Delegate`] trait. The
 [`InferBorrowKind`][ibk] type implements `Delegate` and keeps a map that
 records for each upvar which mode of capture was required. The modes of capture
 can be `ByValue` (moved) or `ByRef` (borrowed). For `ByRef` borrows, the possible
-[`BorrowKind`][BorrowKind]s are `ImmBorrow`, `UniqueImmBorrow`, `MutBorrow` as defined in the
+[`BorrowKind`]s are `ImmBorrow`, `UniqueImmBorrow`, `MutBorrow` as defined in the
 [`compiler/rustc_middle/src/ty/mod.rs`][middle_ty].
 
-[BorrowKind]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/enum.BorrowKind.html
+[`BorrowKind`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/enum.BorrowKind.html
 [middle_ty]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/index.html
 
 `Delegate` defines a few different methods (the different callbacks):