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/13.src | |
| parent | Codegen: Fix bug with varargs functions (diff) | |
| download | pry-lang-3b3ad4a6e6c86ebff2ea19ca5d3e1d0672b76d78.tar.gz pry-lang-3b3ad4a6e6c86ebff2ea19ca5d3e1d0672b76d78.tar.bz2 pry-lang-3b3ad4a6e6c86ebff2ea19ca5d3e1d0672b76d78.zip | |
Misc: Use println instead of printf
Diffstat (limited to 'examples/13.src')
| -rw-r--r-- | examples/13.src | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/13.src b/examples/13.src index 77f85d1..798d056 100644 --- a/examples/13.src +++ b/examples/13.src @@ -1,4 +1,4 @@ -extern printf = (*i64, varargs) => i64; +import "!stdlib.src"; let main = () => i64 { /* Iterative Fibonacci using while loop. */ @@ -24,10 +24,10 @@ let main = () => i64 { }; let fib_val = fibonacci_iter(10); - printf("%d\n", fib_val); + println("%d", fib_val); let gcd_val = gcd(48, 18); - printf("%d\n", gcd_val); + println("%d", gcd_val); return 0; }; |