Change librustdoc write(.. \n) to writeln(..); fix comment in grammar

More grammar
This commit is contained in:
mautamu
2021-05-03 02:14:56 -05:00
parent 59f551a2dc
commit 8db7973f19
4 changed files with 5 additions and 5 deletions

View File

@@ -964,7 +964,7 @@ fn attributes(it: &clean::Item) -> Vec<String> {
// a whitespace prefix and newline.
fn render_attributes_in_pre(w: &mut Buffer, it: &clean::Item, prefix: &str) {
for a in attributes(it) {
write!(w, "{}{}\n", prefix, a);
writeln!(w, "{}{}", prefix, a);
}
}