aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_mbe/src/syntax_bridge.rs
diff options
context:
space:
mode:
authorEdwin Cheng <[email protected]>2019-05-04 12:34:02 +0100
committerEdwin Cheng <[email protected]>2019-05-04 12:34:02 +0100
commit036141663bd934da451461dbc47dc836c432e057 (patch)
treed7709f5ff91e68d374fef542943d5cef4f0b1895 /crates/ra_mbe/src/syntax_bridge.rs
parent048f12d9f0bcd7357d9a885639928a90915577ab (diff)
Quote the quoted comment
Diffstat (limited to 'crates/ra_mbe/src/syntax_bridge.rs')
-rw-r--r--crates/ra_mbe/src/syntax_bridge.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_mbe/src/syntax_bridge.rs b/crates/ra_mbe/src/syntax_bridge.rs
index 63ca54cc2..73a0780da 100644
--- a/crates/ra_mbe/src/syntax_bridge.rs
+++ b/crates/ra_mbe/src/syntax_bridge.rs
@@ -135,7 +135,7 @@ fn doc_comment_text(comment: &ast::Comment) -> SmolStr {
135 135
136 // Quote the string 136 // Quote the string
137 // Note that `tt::Literal` expect an escaped string 137 // Note that `tt::Literal` expect an escaped string
138 let text = format!("\"{}\"", text.escape_default()); 138 let text = format!("{:?}", text.escape_default().to_string());
139 text.into() 139 text.into()
140} 140}
141 141