From d052f007fb1aed2121fc1d93cb6d75ac9470acc7 Mon Sep 17 00:00:00 2001 From: CrescentonC Date: Wed, 4 Aug 2021 12:03:56 +0800 Subject: [PATCH] fix typo of primitives method --- nac3core/src/typecheck/magic_methods.rs | 2 +- nac3core/src/typecheck/type_inferencer/test.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nac3core/src/typecheck/magic_methods.rs b/nac3core/src/typecheck/magic_methods.rs index 967b135a7..6f32f86bc 100644 --- a/nac3core/src/typecheck/magic_methods.rs +++ b/nac3core/src/typecheck/magic_methods.rs @@ -327,7 +327,7 @@ pub fn impl_eq(unifier: &mut Unifier, store: &PrimitiveStore, ty: Type) { } else { unreachable!() } } -pub fn set_primirives_magic_methods(store: &PrimitiveStore, unifier: &mut Unifier) { +pub fn set_primitives_magic_methods(store: &PrimitiveStore, unifier: &mut Unifier) { let PrimitiveStore { int32: int32_t, int64: int64_t, diff --git a/nac3core/src/typecheck/type_inferencer/test.rs b/nac3core/src/typecheck/type_inferencer/test.rs index d7729cc7b..d4449b010 100644 --- a/nac3core/src/typecheck/type_inferencer/test.rs +++ b/nac3core/src/typecheck/type_inferencer/test.rs @@ -82,7 +82,7 @@ impl TestEnvironment { // identifier_mapping.insert("None".into(), none); let primitives = PrimitiveStore { int32, int64, float, bool, none }; - set_primirives_magic_methods(&primitives, &mut unifier); + set_primitives_magic_methods(&primitives, &mut unifier); let id_to_name = [ (0, "int32".to_string()),