forked from M-Labs/nac3
core: Fix typo in error message
This commit is contained in:
parent
5cecb2bb74
commit
282a3e1911
|
@ -337,7 +337,7 @@ impl<'a> Inferencer<'a> {
|
||||||
if !self.check_return_value_ty(ret_ty) {
|
if !self.check_return_value_ty(ret_ty) {
|
||||||
return Err(HashSet::from([
|
return Err(HashSet::from([
|
||||||
format!(
|
format!(
|
||||||
"return value of type {} must be a primitive of a tuple of primitives at {}",
|
"return value of type {} must be a primitive or a tuple of primitives at {}",
|
||||||
self.unifier.stringify(ret_ty),
|
self.unifier.stringify(ret_ty),
|
||||||
value.location,
|
value.location,
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in New Issue