Fix invalid extra dot after version if no source
This commit is contained in:
parent
17dfae79bb
commit
d442a37262
1 changed files with 4 additions and 3 deletions
|
@ -1676,11 +1676,12 @@ fn render_rightside(
|
||||||
containing_item.stable_since(tcx),
|
containing_item.stable_since(tcx),
|
||||||
const_stable_since,
|
const_stable_since,
|
||||||
);
|
);
|
||||||
if has_stability {
|
let mut tmp_buf = Buffer::empty_from(w);
|
||||||
|
write_srclink(cx, item, &mut tmp_buf);
|
||||||
|
if has_stability && !tmp_buf.is_empty() {
|
||||||
w.write_str(" · ");
|
w.write_str(" · ");
|
||||||
}
|
}
|
||||||
|
w.push_buffer(tmp_buf);
|
||||||
write_srclink(cx, item, w);
|
|
||||||
w.write_str("</div>");
|
w.write_str("</div>");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue