Remove rust flags from doc block
This commit is contained in:
parent
3157691f96
commit
47d9f49ebf
1 changed files with 7 additions and 1 deletions
|
|
@ -352,7 +352,13 @@ fn handle_explain(code: &str,
|
|||
match descriptions.find_description(&normalised) {
|
||||
Some(ref description) => {
|
||||
// Slice off the leading newline and print.
|
||||
print!("{}", &description[1..]);
|
||||
print!("{}", &(&description[1..]).split("\n").map(|x| {
|
||||
format!("{}\n", if x.starts_with("```") {
|
||||
"```"
|
||||
} else {
|
||||
x
|
||||
})
|
||||
}).collect::<String>());
|
||||
}
|
||||
None => {
|
||||
early_error(output, &format!("no extended information for {}", code));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue