From 4863d2adfe26cd28243b1bf68e1f07148a5135d9 Mon Sep 17 00:00:00 2001 From: Tshepang Mbambo Date: Thu, 24 Aug 2023 05:16:52 +0200 Subject: [PATCH] make link more pleasant to eye too --- src/llvm-coverage-instrumentation.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/llvm-coverage-instrumentation.md b/src/llvm-coverage-instrumentation.md index c451c4f0a..dc18a0121 100644 --- a/src/llvm-coverage-instrumentation.md +++ b/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