Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/fallback.rs
Original file line number Diff line number Diff line change
Expand Up @@ -754,10 +754,10 @@ impl Literal {
text.push('"');
for c in t.chars() {
if c == '\'' {
// escape_default turns this into "\'" which is unnecessary.
// escape_debug turns this into "\'" which is unnecessary.
text.push(c);
} else {
text.extend(c.escape_default());
text.extend(c.escape_debug());
}
}
text.push('"');
Expand All @@ -768,10 +768,10 @@ impl Literal {
let mut text = String::new();
text.push('\'');
if t == '"' {
// escape_default turns this into '\"' which is unnecessary.
// escape_debug turns this into '\"' which is unnecessary.
text.push(t);
} else {
text.extend(t.escape_default());
text.extend(t.escape_debug());
}
text.push('\'');
Literal::_new(text)
Expand Down