Fix non-latin characters doc comment for mbe

This commit is contained in:
Edwin Cheng
2021-02-28 13:49:08 +08:00
parent e0437f899c
commit bf8bc5c882
2 changed files with 24 additions and 1 deletions

View File

@@ -213,7 +213,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().to_string());
let text = format!("{:?}", text.escape_debug().to_string());
text.into()
}