Fix spaces in docs rendering for -> in functions

This commit is contained in:
Richard Feldman 2023-08-11 21:01:24 -04:00
parent 9fe08cafd0
commit b7ebb01f88
No known key found for this signature in database
GPG Key ID: F1F21AA5B1D9E43B

View File

@ -651,9 +651,11 @@ fn type_annotation_to_html(
if is_multiline {
new_line(buf);
indent(buf, indent_level + 1);
} else {
buf.push(' ');
}
buf.push_str(" -> ");
buf.push_str("-> ");
let mut next_indent_level = indent_level;