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 7fece3b commit 5043c9cCopy full SHA for 5043c9c
crates/ra_ide/src/display.rs
@@ -79,14 +79,14 @@ pub(crate) fn rust_code_markup_with_doc(
79
doc: Option<&str>,
80
mod_path: Option<&str>,
81
) -> String {
82
- let mut buf = "```rust\n".to_owned();
+ let mut buf = "".to_owned();
83
84
if let Some(mod_path) = mod_path {
85
if !mod_path.is_empty() {
86
- format_to!(buf, "{}\n\n", mod_path);
+ format_to!(buf, "{}\n___\n", mod_path);
87
}
88
89
- format_to!(buf, "{}\n```", code);
+ format_to!(buf, "```rust\n\n{}\n```", code);
90
91
if let Some(doc) = doc {
92
format_to!(buf, "\n\n{}", doc);
0 commit comments