From 3cd666c367a39641b1e6d5a9adb82af11ff20da9 Mon Sep 17 00:00:00 2001 From: Joyce Er Date: Sat, 9 Oct 2021 14:15:50 -0700 Subject: [PATCH] Fix typo --- book/src/01_calculator/basic_llvm.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/src/01_calculator/basic_llvm.md b/book/src/01_calculator/basic_llvm.md index 0221776..7e3bcfc 100644 --- a/book/src/01_calculator/basic_llvm.md +++ b/book/src/01_calculator/basic_llvm.md @@ -17,7 +17,7 @@ Go to [`calculator/examples/llvm`](https://github.com/ehsanmok/create-your-own-l We want to define an add function like ``` -add(x: i32, x: i32) -> i32 { x + y } +add(x: i32, y: i32) -> i32 { x + y } ``` but using the **LLVM language** and JIT it. For that, we need to define *every* bit of what makes up a function through LLVM basic constructs such as context, module, function signature setups, argument types, basic block, etc.