Skip to content

Commit 6b38948

Browse files
committed
Update comment for clarity on quote handling in EscapeQuotedString display implementation
1 parent f7a2f77 commit 6b38948

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ast/value.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ impl fmt::Display for EscapeQuotedString<'_> {
474474
}
475475
_ => {
476476
// The quote is not escaped.
477-
// Not calling .next(), so the quote at idx will be printed twice:
477+
// Including idx in the range, so the quote at idx will be printed twice:
478478
// in this call to write_str() and in the next one.
479479
f.write_str(&self.string[start_idx..=idx])?;
480480
start_idx = idx;

0 commit comments

Comments
 (0)