Remove rust flags from doc block
This commit is contained in:
parent
3157691f96
commit
47d9f49ebf
@ -352,7 +352,13 @@ fn handle_explain(code: &str,
|
|||||||
match descriptions.find_description(&normalised) {
|
match descriptions.find_description(&normalised) {
|
||||||
Some(ref description) => {
|
Some(ref description) => {
|
||||||
// Slice off the leading newline and print.
|
// 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 => {
|
None => {
|
||||||
early_error(output, &format!("no extended information for {}", code));
|
early_error(output, &format!("no extended information for {}", code));
|
||||||
|
Loading…
Reference in New Issue
Block a user