about summary refs log tree commit diff
path: root/src/doc/rustc-dev-guide
diff options
context:
space:
mode:
authorTshepang Mbambo <tshepang@gmail.com>2023-08-27 03:00:20 +0200
committerGitHub <noreply@github.com>2023-08-27 10:00:20 +0900
commitf2bae7f7ac0d79a0d187b95dd02305eddfeb7953 (patch)
tree60c878830c2f38b1e5f836f0f58e323f49296c7c /src/doc/rustc-dev-guide
parentd0e8ea601acff03bb7176b34288b4fc52b7a836e (diff)
downloadrust-f2bae7f7ac0d79a0d187b95dd02305eddfeb7953.tar.gz
rust-f2bae7f7ac0d79a0d187b95dd02305eddfeb7953.zip
make link more pleasant to eye (#1777)
Diffstat (limited to 'src/doc/rustc-dev-guide')
-rw-r--r--src/doc/rustc-dev-guide/src/llvm-coverage-instrumentation.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/rustc-dev-guide/src/llvm-coverage-instrumentation.md b/src/doc/rustc-dev-guide/src/llvm-coverage-instrumentation.md
index 33e42ecbf5a..af7cf30ffb6 100644
--- a/src/doc/rustc-dev-guide/src/llvm-coverage-instrumentation.md
+++ b/src/doc/rustc-dev-guide/src/llvm-coverage-instrumentation.md
@@ -84,7 +84,7 @@ the Rust source code.
 
 Note that many of these `Coverage` statements will _not_ be converted into
 physical counters (or any other executable instructions) in the final binary.
-Some of them will be (see `CoverageKind::`[`Counter`][counter-coverage-kind]),
+Some of them will be (see [`CoverageKind::Counter`]),
 but other counters can be computed on the fly, when generating a coverage
 report, by mapping a `CodeRegion` to a
 `CoverageKind`::[`Expression`][expression-coverage-kind].
@@ -131,7 +131,7 @@ The `InstrumentCoverage` MIR pass is documented in
 [mir-passes]: mir/passes.md
 [mir-instrument-coverage]: https://github.com/rust-lang/rust/tree/master/compiler/rustc_mir_transform/src/coverage
 [code-region]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/mir/coverage/struct.CodeRegion.html
-[counter-coverage-kind]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/mir/coverage/enum.CoverageKind.html#variant.Counter
+[`CoverageKind::Counter`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/mir/coverage/enum.CoverageKind.html#variant.Counter
 [expression-coverage-kind]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/mir/coverage/enum.CoverageKind.html#variant.Expression
 [coverage-statement]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/mir/enum.StatementKind.html#variant.Coverage
 [instrument-coverage-pass-details]: #implementation-details-of-the-instrumentcoverage-mir-pass