mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-30 03:27:44 +00:00
Merge pull request #19526 from SOF3/patch-1
The rustdoc file prefix for constants is "constant" not "const"
This commit is contained in:
commit
94c33840cc
1 changed files with 1 additions and 1 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue