Skip to content

Commit 94c3384

Browse files
authored
Merge pull request #19526 from SOF3/patch-1
The rustdoc file prefix for constants is "constant" not "const"
2 parents 55c8cde + 1428aa9 commit 94c3384

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)