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.
1 parent 411f94c commit 27b58edCopy full SHA for 27b58ed
src/librustc_driver/lib.rs
@@ -524,13 +524,13 @@ fn handle_explain(code: &str,
524
let mut text = String::new();
525
526
// Slice off the leading newline and print.
527
- for line in description[1..].lines() {
+ for line in description.lines() {
528
let indent_level = line.find(|c: char| !c.is_whitespace())
529
.unwrap_or_else(|| line.len());
530
let dedented_line = &line[indent_level..];
531
if dedented_line.starts_with("```") {
532
is_in_code_block = !is_in_code_block;
533
- text.push_str(&line[..(indent_level+3)]);
+ text.push_str(&line[..(indent_level + 3)]);
534
} else if is_in_code_block && dedented_line.starts_with("# ") {
535
continue;
536
} else {
0 commit comments