Skip to content

Commit

Permalink
rustdoc: Highlight function names
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Sep 25, 2013
1 parent 5636ca6 commit c4219a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/librustdoc/html/render.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 ",
Expand Down
1 change: 1 addition & 0 deletions src/librustdoc/html/static/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ a {
.content a.enum, .block a.current.enum { color: #5e9766; }
.content a.struct, .block a.current.struct { color: #e53700; }
.content a.fn, .block a.current.fn { color: #8c6067; }
.content .fnname { color: #8c6067; }

.search-input {
border: 2px solid #f2f2f2;
Expand Down

0 comments on commit c4219a4

Please sign in to comment.