From 34904ce10610d8b08126b6a1cd730878348f1083 Mon Sep 17 00:00:00 2001 From: Ben Bridle Date: Tue, 25 Mar 2025 11:04:02 +1300 Subject: Improve wording of error messages --- src/stages/syntactic_tokens.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/stages/syntactic_tokens.rs') diff --git a/src/stages/syntactic_tokens.rs b/src/stages/syntactic_tokens.rs index 57e78e7..4c258c6 100644 --- a/src/stages/syntactic_tokens.rs +++ b/src/stages/syntactic_tokens.rs @@ -50,7 +50,7 @@ fn report_syntactic_error(error: &Tracked, source_code: &str) { let context = Context { source_code: &source_code, source: &error.source }; let message = match &error.value { SyntacticError::UnterminatedBlock => - "Block was not terminated, add a '}}' character to terminate", + "Block was not terminated, add a '}' character to terminate", SyntacticError::UnterminatedComment => "Comment was not terminated, add a ')' character to terminate", SyntacticError::UnterminatedRawString => -- cgit v1.2.3-70-g09d2