Skip to content

Commit

Permalink
fix mdlint
Browse files Browse the repository at this point in the history
  • Loading branch information
DawnMagnet committed Jun 27, 2024
1 parent 2858b14 commit 535c316
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion course14/lec14_script_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,14 @@ If(1, List::[Const(1)], List::[Const(0)])

We use the content we just described to implement an addition program. The definition of the addition function has been seen before, and we added a test_add as the main entry of the program. The only thing to pay attention to is that after calling the add function, we call the print_int function again. The print_int is a special function. You may have noticed that I did not mention how to define input and output in Wasm, because these functions need to be implemented by external functions, Wasm itself can be considered as a program running in a sandbox.

```moonbit expr
```moonbit
struct Program {
functions : @immut/list.List[Function]
start : Option[String]
}
```

```moonbit expr
let program = Program::{
start: Some("test_add"), // Program entry point
Expand Down

0 comments on commit 535c316

Please sign in to comment.