From 651654bbc55d2a4571fe01b8db60f0bd4aedcd0d Mon Sep 17 00:00:00 2001 From: Vlad Faust Date: Tue, 1 Sep 2020 00:26:01 +0300 Subject: [PATCH] Fix typo Thanks to Solomon Jackson (@sugarfi on repl.it) --- posts/2020-08-20-the-onyx-programming-language.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)`.