From 282a3e1911bf767060de1c12a3363dd6e985e933 Mon Sep 17 00:00:00 2001 From: David Mak Date: Wed, 14 Feb 2024 16:18:11 +0800 Subject: [PATCH] core: Fix typo in error message --- nac3core/src/typecheck/function_check.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nac3core/src/typecheck/function_check.rs b/nac3core/src/typecheck/function_check.rs index e407880d..db43e037 100644 --- a/nac3core/src/typecheck/function_check.rs +++ b/nac3core/src/typecheck/function_check.rs @@ -337,7 +337,7 @@ impl<'a> Inferencer<'a> { if !self.check_return_value_ty(ret_ty) { return Err(HashSet::from([ 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), value.location, ),