Skip to content

Commit a549fc3

Browse files
authored
Merge pull request #180 from JHertz5/error_message_typo
Reworked error message to correct typo and grammar mistake. Issue VHD…
2 parents 42948a2 + ecfc99f commit a549fc3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

vhdl_lang/src/analysis/literals.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ impl<'a> AnalyzeContext<'a> {
128128
diagnostics.error(
129129
pos,
130130
format!(
131-
"Truncating to {} bit would loose information",
131+
"Truncating vector to length {} would lose information",
132132
bit_string.length.unwrap() // Safe as this error can only happen when there is a length
133133
),
134134
);

vhdl_lang/src/analysis/tests/typecheck_expression.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ constant f: bit_vector := 2SX\"\";
196196
Diagnostic::error(code.s1("D\"1AFFE\""), "Illegal digit 'A' for base 10"),
197197
Diagnostic::error(
198198
code.s1("8SX\"0FF\""),
199-
"Truncating to 8 bit would loose information",
199+
"Truncating vector to length 8 would lose information",
200200
),
201201
Diagnostic::error(
202202
code.s1("X\"G\""),

0 commit comments

Comments
 (0)