diff options
| author | Laurențiu Nicola <lnicola@users.noreply.github.com> | 2025-04-05 10:34:37 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-05 10:34:37 +0000 |
| commit | cf71bb3315d7b0ad173efa8f62fbf2fd9566c33d (patch) | |
| tree | 24fdb9358069a872b924b0ae939fee8e65369f19 /src | |
| parent | 56cf54f03f025d034e2f3686a1521f2ee76c9152 (diff) | |
| parent | 5dd7526d8f76368b5d539edb2ef5adf74d4012bd (diff) | |
| download | rust-cf71bb3315d7b0ad173efa8f62fbf2fd9566c33d.tar.gz rust-cf71bb3315d7b0ad173efa8f62fbf2fd9566c33d.zip | |
Merge pull request #19526 from SOF3/patch-1
The rustdoc file prefix for constants is "constant" not "const"
Diffstat (limited to 'src')
| -rw-r--r-- | src/tools/rust-analyzer/crates/ide/src/doc_links.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/rust-analyzer/crates/ide/src/doc_links.rs b/src/tools/rust-analyzer/crates/ide/src/doc_links.rs index a01afd242e3..258d80e67c4 100644 --- a/src/tools/rust-analyzer/crates/ide/src/doc_links.rs +++ b/src/tools/rust-analyzer/crates/ide/src/doc_links.rs @@ -627,7 +627,7 @@ fn filename_and_frag_for_def( return Some((def, file, Some(format!("variant.{}", ev.name(db).as_str())))); } Definition::Const(c) => { - format!("const.{}.html", c.name(db)?.as_str()) + format!("constant.{}.html", c.name(db)?.as_str()) } Definition::Static(s) => { format!("static.{}.html", s.name(db).as_str()) |
