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