From f563d46dad53d9045a991bf81e421d0f4431ebc2 Mon Sep 17 00:00:00 2001 From: Franklin Oladipo Date: Thu, 24 Oct 2024 12:45:48 +0100 Subject: [PATCH] modify ASSIGNMENT_TO_CONST error message --- pkg/analyzer/messages.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/analyzer/messages.yaml b/pkg/analyzer/messages.yaml index a2edd39ecb84..c14a3d12cdf8 100644 --- a/pkg/analyzer/messages.yaml +++ b/pkg/analyzer/messages.yaml @@ -788,7 +788,7 @@ CompileTimeErrorCode: } ``` ASSIGNMENT_TO_CONST: - problemMessage: "Constant variables can't be assigned a value." + problemMessage: "Constant variables can't be re-assigned a value." correctionMessage: "Try removing the assignment, or remove the modifier 'const' from the variable." hasPublishedDocs: true comment: No parameters.