fix rustdoc test

This commit is contained in:
Esteban Küber 2024-03-17 23:46:39 +00:00
parent ea1883d7b2
commit f4d30b156b
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ pub(crate) fn emit_unescape_error(
}
escaped.push(c);
}
if escaped.len() != lit.len() {
if escaped.len() != lit.len() || full_lit_span.is_empty() {
let sugg = format!("{prefix}\"{escaped}\"");
MoreThanOneCharSugg::QuotesFull {
span: full_lit_span,