diff --git a/posts/2020-08-20-the-onyx-programming-language.md b/posts/2020-08-20-the-onyx-programming-language.md index 5c99f44..ff9b76b 100644 --- a/posts/2020-08-20-the-onyx-programming-language.md +++ b/posts/2020-08-20-the-onyx-programming-language.md @@ -397,7 +397,7 @@ export void main() { unsafe! $puts("i = 0") unsafe! $puts("i = 1") unsafe! $puts("i = 2") -end +} ``` That simple: the Lua code runs during compilation. @@ -456,7 +456,7 @@ import "stdio.h" export void main() { unsafe! $printf(&"%d\n", @fib(10)) -end +} ``` In this example, `@fib(10)` would evaluate during compilation and emit a number literal `55`, so the code turns into simple `$printf(&"%d\n", 55)`.