Skip to content

Commit

Permalink
Merge pull request #180 from JHertz5/error_message_typo
Browse files Browse the repository at this point in the history
Reworked error message to correct typo and grammar mistake. Issue VHD…
  • Loading branch information
kraigher authored Jun 29, 2023
2 parents 42948a2 + ecfc99f commit a549fc3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion vhdl_lang/src/analysis/literals.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ impl<'a> AnalyzeContext<'a> {
diagnostics.error(
pos,
format!(
"Truncating to {} bit would loose information",
"Truncating vector to length {} would lose information",
bit_string.length.unwrap() // Safe as this error can only happen when there is a length
),
);
Expand Down
2 changes: 1 addition & 1 deletion vhdl_lang/src/analysis/tests/typecheck_expression.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ constant f: bit_vector := 2SX\"\";
Diagnostic::error(code.s1("D\"1AFFE\""), "Illegal digit 'A' for base 10"),
Diagnostic::error(
code.s1("8SX\"0FF\""),
"Truncating to 8 bit would loose information",
"Truncating vector to length 8 would lose information",
),
Diagnostic::error(
code.s1("X\"G\""),
Expand Down

0 comments on commit a549fc3

Please sign in to comment.