about summary refs log tree commit diff
path: root/src/librustdoc/html/render.rs
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2017-02-19 00:31:09 +0100
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2017-02-26 15:50:53 +0100
commit081336e8eb5d94071dad7f6fee9efd00305dc381 (patch)
tree7c9a938432a9952269006bd0b239a2ae53b9239f /src/librustdoc/html/render.rs
parent1572bf104dbf65d58bd6b889fa46229c9b92d6f9 (diff)
downloadrust-081336e8eb5d94071dad7f6fee9efd00305dc381.tar.gz
rust-081336e8eb5d94071dad7f6fee9efd00305dc381.zip
Improve associated constant rendering in rustdoc
Diffstat (limited to 'src/librustdoc/html/render.rs')
-rw-r--r--src/librustdoc/html/render.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/html/render.rs b/src/librustdoc/html/render.rs
index ae4c94d4b38..86b7c9736da 100644
--- a/src/librustdoc/html/render.rs
+++ b/src/librustdoc/html/render.rs
@@ -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())?;