Skip to content

Commit bc4ad1a

Browse files
committed
Add the short type to inline links, too
1 parent fce944d commit bc4ad1a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustdoc/html/format.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -550,8 +550,8 @@ impl<'a> fmt::Display for HRef<'a> {
550550
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
551551
match href(self.did) {
552552
Some((url, shortty, fqp)) => if !f.alternate() {
553-
write!(f, "<a class='{}' href='{}' title='{}'>{}</a>",
554-
shortty, url, fqp.join("::"), self.text)
553+
write!(f, "<a class='{}' href='{}' title='{} {}'>{}</a>",
554+
shortty, url, shortty, fqp.join("::"), self.text)
555555
} else {
556556
write!(f, "{}", self.text)
557557
},

0 commit comments

Comments
 (0)