Skip to content

Commit 5569d22

Browse files
committed
the rustdoc file prefix for constants is "constant" not "const"
1 parent 1e008dd commit 5569d22

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
@@ -628,7 +628,7 @@ fn filename_and_frag_for_def(
628628
return Some((def, file, Some(format!("variant.{}", ev.name(db).as_str()))));
629629
}
630630
Definition::Const(c) => {
631-
format!("const.{}.html", c.name(db)?.as_str())
631+
format!("constant.{}.html", c.name(db)?.as_str())
632632
}
633633
Definition::Static(s) => {
634634
format!("static.{}.html", s.name(db).as_str())

0 commit comments

Comments
 (0)