Improve associated constant rendering in rustdoc
This commit is contained in:
parent
1572bf104d
commit
081336e8eb
3 changed files with 6 additions and 6 deletions
|
@ -2217,7 +2217,7 @@ fn assoc_const(w: &mut fmt::Formatter,
|
|||
ty: &clean::Type,
|
||||
default: Option<&String>,
|
||||
link: AssocItemLink) -> fmt::Result {
|
||||
write!(w, "const <a href='{}' class='constant'>{}</a>",
|
||||
write!(w, "const <a href='{}' class='constant'><b>{}</b></a>",
|
||||
naive_assoc_href(it, link),
|
||||
it.name.as_ref().unwrap())?;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue