Fix invalid extra dot after version if no source
This commit is contained in:
parent
17dfae79bb
commit
d442a37262
@ -1676,11 +1676,12 @@ fn render_rightside(
|
||||
containing_item.stable_since(tcx),
|
||||
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(" · ");
|
||||
}
|
||||
|
||||
write_srclink(cx, item, w);
|
||||
w.push_buffer(tmp_buf);
|
||||
w.write_str("</div>");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user