Skip to content

Commit

Permalink
chore: minor error phrasing change
Browse files Browse the repository at this point in the history
  • Loading branch information
jac3km4 committed Aug 12, 2024
1 parent 0cb863e commit a3e7d20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/src/diagnostics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
Expand Down

0 comments on commit a3e7d20

Please sign in to comment.