From 2858b141f4db23b36c7de38f452cfc13450ce740 Mon Sep 17 00:00:00 2001 From: DawnManget Date: Thu, 27 Jun 2024 17:58:48 +0800 Subject: [PATCH] fix mdlint --- course14/lec14_script_en.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/course14/lec14_script_en.md b/course14/lec14_script_en.md index 2a70812..fe44d61 100644 --- a/course14/lec14_script_en.md +++ b/course14/lec14_script_en.md @@ -72,6 +72,10 @@ 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 +struct Program { + functions : @immut/list.List[Function] + start : Option[String] +} let program = Program::{ start: Some("test_add"), // Program entry point