forked from M-Labs/nac3
1
0
Fork 0

fix typo of primitives method

This commit is contained in:
CrescentonC 2021-08-04 12:03:56 +08:00
parent 8452579c67
commit d052f007fb
2 changed files with 2 additions and 2 deletions

View File

@ -327,7 +327,7 @@ pub fn impl_eq(unifier: &mut Unifier, store: &PrimitiveStore, ty: Type) {
} else { unreachable!() } } 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 { let PrimitiveStore {
int32: int32_t, int32: int32_t,
int64: int64_t, int64: int64_t,

View File

@ -82,7 +82,7 @@ impl TestEnvironment {
// identifier_mapping.insert("None".into(), none); // identifier_mapping.insert("None".into(), none);
let primitives = PrimitiveStore { int32, int64, float, bool, 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 = [ let id_to_name = [
(0, "int32".to_string()), (0, "int32".to_string()),