From a3e7d2063af3db62c300fa897bde5029cea4cc78 Mon Sep 17 00:00:00 2001 From: jekky Date: Mon, 12 Aug 2024 22:16:10 +0100 Subject: [PATCH] chore: minor error phrasing change --- compiler/src/diagnostics.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/src/diagnostics.rs b/compiler/src/diagnostics.rs index 842accf..b991f48 100644 --- a/compiler/src/diagnostics.rs +++ b/compiler/src/diagnostics.rs @@ -64,7 +64,7 @@ pub enum Diagnostic { #[error( "'{0}' is a native struct which is not known to have a valid and complete script \ definition, passing arguments to its constructor might result in undefined behavior, \ - it might be preferable to construct it without arguments: 'new {0}()'" + it should be preferred to construct such types without arguments: 'new {0}()'" )] NonSealedStructConstruction(Ident, Span), #[error("adding fields to this struct is not permitted")]