diff --git a/smart_ir/src/ir_codegen/ir.rs b/smart_ir/src/ir_codegen/ir.rs index 9abd968..7bb32c7 100644 --- a/smart_ir/src/ir_codegen/ir.rs +++ b/smart_ir/src/ir_codegen/ir.rs @@ -437,7 +437,7 @@ impl<'ctx> IR2LLVMCodeGenContext<'ctx> { .unwrap(); } else { return Err(CodeGenError { - message: "wrong type defination".to_string(), + message: "wrong type definition".to_string(), }); } } else { @@ -446,14 +446,14 @@ impl<'ctx> IR2LLVMCodeGenContext<'ctx> { } else { return Err(CodeGenError { message: - "try to get field from a pointer whose elemet isn't a struct" + "try to get field from a pointer whose element isn't a struct" .to_string(), }); } } else { return Err(CodeGenError { message: - "try to get field from a pointer whose elemet isn't a pointer" + "try to get field from a pointer whose element isn't a pointer" .to_string(), }); } @@ -504,7 +504,7 @@ impl<'ctx> IR2LLVMCodeGenContext<'ctx> { .unwrap(); } else { return Err(CodeGenError { - message: "wrong type defination".to_string(), + message: "wrong type definition".to_string(), }); } } else {