Skip to content

Commit 58438af

Browse files
authored
Merge pull request #61 from viktorking7/main
fix: typos in IR codegen comments and error message
2 parents d973049 + b017d48 commit 58438af

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

smart_ir/src/ir_codegen/context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1151,7 +1151,7 @@ impl<'ctx> IR2LLVMCodeGenContext<'ctx> {
11511151
// }
11521152

11531153
for ir_module in &self.ir_modules {
1154-
// scan all module's func defintions to use in other modules
1154+
// scan all module's func definitions to use in other modules
11551155
for (_, function) in &ir_module.functions {
11561156
self.func_definitions.borrow_mut().push(function.clone());
11571157
}

smart_ir/src/ir_codegen/ir.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ impl<'ctx> IR2LLVMCodeGenContext<'ctx> {
513513
} else {
514514
return Err(CodeGenError {
515515
message:
516-
"try to get field from a pointer whose elemet isn't a struct"
516+
"try to get field from a pointer whose element isn't a struct"
517517
.to_string(),
518518
});
519519
}

0 commit comments

Comments
 (0)