Skip to content

Commit fbf3e96

Browse files
committed
Rollup merge of rust-lang#30940 - tshepang:extraneous-playpen-whitespace, r=steveklabnik
2 parents 48a7651 + 61e3918 commit fbf3e96

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/librustdoc/test.rs

+1
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,7 @@ pub fn maketest(s: &str, cratename: Option<&str>, dont_insert_main: bool,
319319
} else {
320320
prog.push_str("fn main() {\n ");
321321
prog.push_str(&everything_else.replace("\n", "\n "));
322+
prog = prog.trim().into();
322323
prog.push_str("\n}");
323324
}
324325

0 commit comments

Comments
 (0)