diff options
| author | Baitinq <[email protected]> | 2025-05-18 23:53:59 +0200 |
|---|---|---|
| committer | Baitinq <[email protected]> | 2025-05-18 23:53:59 +0200 |
| commit | 3b3ad4a6e6c86ebff2ea19ca5d3e1d0672b76d78 (patch) | |
| tree | f7880ba5b35732cb9a205d495c04506349f4470c /examples/12.src | |
| parent | Codegen: Fix bug with varargs functions (diff) | |
| download | interpreter-3b3ad4a6e6c86ebff2ea19ca5d3e1d0672b76d78.tar.gz interpreter-3b3ad4a6e6c86ebff2ea19ca5d3e1d0672b76d78.tar.bz2 interpreter-3b3ad4a6e6c86ebff2ea19ca5d3e1d0672b76d78.zip | |
Misc: Use println instead of printf
Diffstat (limited to 'examples/12.src')
| -rw-r--r-- | examples/12.src | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/12.src b/examples/12.src index 85e4211..21207f2 100644 --- a/examples/12.src +++ b/examples/12.src @@ -1,4 +1,4 @@ -extern printf = (*i64, varargs) => i64; +import "!stdlib.src"; let main = () => i64 { let factorial = (n: i64) => i64 { @@ -31,10 +31,10 @@ let main = () => i64 { }; let fact_val = factorial(6); - printf("%d\n", fact_val); + println("%d", fact_val); let even_sum = sum_if(is_even, 20); - printf("%d\n", even_sum); + println("%d", even_sum); return 0; }; |