Skip to content

Commit cf71bb3

Browse files
authored
Merge pull request rust-lang#19526 from SOF3/patch-1
The rustdoc file prefix for constants is "constant" not "const"
2 parents 56cf54f + 5dd7526 commit cf71bb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/rust-analyzer/crates/ide/src/doc_links.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ fn filename_and_frag_for_def(
627627
return Some((def, file, Some(format!("variant.{}", ev.name(db).as_str()))));
628628
}
629629
Definition::Const(c) => {
630-
format!("const.{}.html", c.name(db)?.as_str())
630+
format!("constant.{}.html", c.name(db)?.as_str())
631631
}
632632
Definition::Static(s) => {
633633
format!("static.{}.html", s.name(db).as_str())

0 commit comments

Comments
 (0)