summary refs log tree commit diff
path: root/src/librustdoc/html/render
diff options
context:
space:
mode:
authormautamu <mautam@usa.com>2021-05-03 02:14:56 -0500
committermautamu <mautam@usa.com>2021-05-03 02:19:57 -0500
commit8db7973f1952ab07c0ceb83cfb134f9bda518552 (patch)
tree969b2fb48dc58318e527a25bc9248867e5eab5e3 /src/librustdoc/html/render
parent59f551a2dcf57c0d3d96ac5ef60e000524210469 (diff)
downloadrust-8db7973f1952ab07c0ceb83cfb134f9bda518552.tar.gz
rust-8db7973f1952ab07c0ceb83cfb134f9bda518552.zip
Change librustdoc write(.. \n) to writeln(..); fix comment in grammar
More grammar
Diffstat (limited to 'src/librustdoc/html/render')
-rw-r--r--src/librustdoc/html/render/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/html/render/mod.rs b/src/librustdoc/html/render/mod.rs
index 811c4233386..1271b54debd 100644
--- a/src/librustdoc/html/render/mod.rs
+++ b/src/librustdoc/html/render/mod.rs
@@ -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);
     }
 }