Fix typo and wording of CDSL error messages

This commit is contained in:
Andrew Brown
2020-07-01 10:31:13 -07:00
parent ce51995828
commit 152d7fcee7

View File

@@ -62,7 +62,7 @@ impl InstructionGroup {
self.instructions
.iter()
.find(|inst| inst.name == name)
.unwrap_or_else(|| panic!("unexisting instruction with name {}", name))
.unwrap_or_else(|| panic!("instruction with name '{}' does not exist", name))
}
}
@@ -598,7 +598,7 @@ fn verify_format(inst_name: &str, operands_in: &[Operand], format: &InstructionF
assert_eq!(
num_values, format.num_value_operands,
"inst {} doesnt' have as many value input operand as its format {} declares; you may need \
"inst {} doesn't have as many value input operands as its format {} declares; you may need \
to use a different format.",
inst_name, format.name
);