about summary refs log tree commit diff
path: root/src/doc
diff options
context:
space:
mode:
authorTshepang Mbambo <tshepang@gmail.com>2023-09-11 12:36:36 +0200
committerGitHub <noreply@github.com>2023-09-11 19:36:36 +0900
commitb23f2379e542a2902c0800a4b195999f13672d81 (patch)
treebcebecacd3065f2a0049fcc7d9d5d46683311b85 /src/doc
parent6d9d2817049e1d08cce74dd38d49d5c91c190482 (diff)
downloadrust-b23f2379e542a2902c0800a4b195999f13672d81.tar.gz
rust-b23f2379e542a2902c0800a4b195999f13672d81.zip
make link more pleasant to eye too (#1778)
Diffstat (limited to 'src/doc')
-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 c451c4f0a21..dc18a01218e 100644
--- a/src/doc/rustc-dev-guide/src/llvm-coverage-instrumentation.md
+++ b/src/doc/rustc-dev-guide/src/llvm-coverage-instrumentation.md
@@ -87,7 +87,7 @@ physical counters (or any other executable instructions) in the final binary.
 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].
+[`CoverageKind::Expression`].
 
 As an example:
 
@@ -132,7 +132,7 @@ The `InstrumentCoverage` MIR pass is documented in
 [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
 [`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
+[`CoverageKind::Expression`]: 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