mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 14:51:48 +00:00
Quote the quoted comment
This commit is contained in:
parent
048f12d9f0
commit
036141663b
2 changed files with 2 additions and 2 deletions
|
@ -135,7 +135,7 @@ fn doc_comment_text(comment: &ast::Comment) -> SmolStr {
|
|||
|
||||
// Quote the string
|
||||
// Note that `tt::Literal` expect an escaped string
|
||||
let text = format!("\"{}\"", text.escape_default());
|
||||
let text = format!("{:?}", text.escape_default().to_string());
|
||||
text.into()
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue