We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2d26c01 + 47d9f49 commit 00e3092Copy full SHA for 00e3092
src/librustc_driver/lib.rs
@@ -352,7 +352,13 @@ fn handle_explain(code: &str,
352
match descriptions.find_description(&normalised) {
353
Some(ref description) => {
354
// Slice off the leading newline and print.
355
- print!("{}", &description[1..]);
+ print!("{}", &(&description[1..]).split("\n").map(|x| {
356
+ format!("{}\n", if x.starts_with("```") {
357
+ "```"
358
+ } else {
359
+ x
360
+ })
361
+ }).collect::<String>());
362
}
363
None => {
364
early_error(output, &format!("no extended information for {}", code));
0 commit comments