1
Fork 0

rustdoc: Highlight function names

Closes #9460
This commit is contained in:
Alex Crichton 2013-09-24 14:07:13 -07:00
parent 5636ca625e
commit c4219a4783
2 changed files with 3 additions and 2 deletions

View file

@ -889,8 +889,8 @@ fn render_method(w: &mut io::Writer, meth: &clean::Item, withlink: bool) {
g: &clean::Generics, selfty: &clean::SelfTy, d: &clean::FnDecl,
withlink: bool) {
write!(w, "{}fn {withlink, select,
true{<a href='\\#fn.{name}'>{name}</a>}
other{{name}}
true{<a href='\\#fn.{name}' class='fnname'>{name}</a>}
other{<span class='fnname'>{name}</span>}
}{generics}{decl}",
match purity {
ast::unsafe_fn => "unsafe ",