Skip to content

Commit 16e3047

Browse files
authored
Make Diag a clickable link in Suggestion section (rust-lang#2140)
1 parent 544b1fc commit 16e3047

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: src/diagnostics.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -387,10 +387,11 @@ example-example-error = oh no! this is an error!
387387

388388
In addition to telling the user exactly _why_ their code is wrong, it's
389389
oftentimes furthermore possible to tell them how to fix it. To this end,
390-
`Diag` offers a structured suggestions API, which formats code
390+
[`Diag`][diag] offers a structured suggestions API, which formats code
391391
suggestions pleasingly in the terminal, or (when the `--error-format json` flag
392392
is passed) as JSON for consumption by tools like [`rustfix`][rustfix].
393393

394+
[diag]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_errors/struct.Diag.html
394395
[rustfix]: https://github.com/rust-lang/rustfix
395396

396397
Not all suggestions should be applied mechanically, they have a degree of

0 commit comments

Comments
 (0)