From 878042bc3dc933275b373053b35db50b69c5cfd5 Mon Sep 17 00:00:00 2001 From: Richard Feldman Date: Tue, 27 Feb 2024 12:11:54 -0500 Subject: [PATCH] Revise error for single-quote interpolation --- crates/reporting/src/error/parse.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/reporting/src/error/parse.rs b/crates/reporting/src/error/parse.rs index 8f0df4128a..f28f5b7b58 100644 --- a/crates/reporting/src/error/parse.rs +++ b/crates/reporting/src/error/parse.rs @@ -1098,9 +1098,9 @@ fn to_str_report<'a>( ESingleQuote::InterpolationNotAllowed => { alloc.stack([ alloc.concat([ - alloc.reflow("I am part way through parsing this scalar literal (character literal), "), - alloc.reflow("but I encountered a string interpolation like \"$(this)\", which is not "), - alloc.reflow("allowed in scalar literals."), + alloc.reflow("I am part way through parsing this single-quote literal, "), + alloc.reflow("but I encountered a string interpolation like \"$(this)\","), + alloc.reflow("which is not allowed in single-quote literals."), ]), alloc.region_with_subregion(lines.convert_region(surroundings), region), alloc.concat([