Skip to content

Commit

Permalink
Add the short type to inline links, too
Browse files Browse the repository at this point in the history
  • Loading branch information
notriddle committed Feb 9, 2017
1 parent fce944d commit bc4ad1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/librustdoc/html/format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -550,8 +550,8 @@ impl<'a> fmt::Display for HRef<'a> {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
match href(self.did) {
Some((url, shortty, fqp)) => if !f.alternate() {
write!(f, "<a class='{}' href='{}' title='{}'>{}</a>",
shortty, url, fqp.join("::"), self.text)
write!(f, "<a class='{}' href='{}' title='{} {}'>{}</a>",
shortty, url, shortty, fqp.join("::"), self.text)
} else {
write!(f, "{}", self.text)
},
Expand Down

0 comments on commit bc4ad1a

Please sign in to comment.