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.
Literal::string()
1 parent ac76206 commit f108fceCopy full SHA for f108fce
src/libproc_macro/lib.rs
@@ -488,7 +488,7 @@ impl Literal {
488
pub fn string(string: &str) -> Literal {
489
let mut escaped = String::new();
490
for ch in string.chars() {
491
- escaped.extend(ch.escape_unicode());
+ escaped.extend(ch.escape_debug());
492
}
493
Literal(token::Literal(token::Lit::Str_(Symbol::intern(&escaped)), None))
494
0 commit comments