Skip to content

Commit e34496f

Browse files
JOE1994Joshua Nelson
authored and
Joshua Nelson
committed
update link to 'BorrowKind' to be implicit in markdown
1 parent 80537ec commit e34496f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/closure.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -183,10 +183,10 @@ The callbacks are defined by implementing the [`Delegate`] trait. The
183183
[`InferBorrowKind`][ibk] type implements `Delegate` and keeps a map that
184184
records for each upvar which mode of capture was required. The modes of capture
185185
can be `ByValue` (moved) or `ByRef` (borrowed). For `ByRef` borrows, the possible
186-
[`BorrowKind`][BorrowKind]s are `ImmBorrow`, `UniqueImmBorrow`, `MutBorrow` as defined in the
186+
[`BorrowKind`]s are `ImmBorrow`, `UniqueImmBorrow`, `MutBorrow` as defined in the
187187
[`compiler/rustc_middle/src/ty/mod.rs`][middle_ty].
188188

189-
[BorrowKind]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/enum.BorrowKind.html
189+
[`BorrowKind`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/enum.BorrowKind.html
190190
[middle_ty]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/index.html
191191

192192
`Delegate` defines a few different methods (the different callbacks):

0 commit comments

Comments
 (0)