From 9e8cbaa1d684838df4b793152bdf4856fc1df073 Mon Sep 17 00:00:00 2001 From: anim001k <140460766+anim001k@users.noreply.github.com> Date: Mon, 4 Aug 2025 14:50:50 +0200 Subject: [PATCH] Update ir.rs --- smart_ir/src/ir_codegen/ir.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 {