Minor fix in handleBuiltinFunction() (whoopsie)

This commit is contained in:
Mattia Giambirtone 2023-05-01 16:46:58 +02:00
parent 42ba738620
commit 7bae3ad249
Signed by: nocturn9x
GPG Key ID: 8270F9F467971E59
2 changed files with 5 additions and 2 deletions

View File

@ -128,5 +128,7 @@ out for yourself. Fortunately, the process is quite straightforward:
automate this soon, but as of right now the work is all manual (and it's part of the fun, IMHO ;))
__Note__: On Linux, peon will also look into `~/.local/peon/stdlib`
If you've done everything right, you should be able to run `peon` in your terminal and have it drop you into the REPL. Good
luck and have fun!

View File

@ -1,4 +1,5 @@
import std;
import time;
fn fib(n: int): int {
@ -10,7 +11,7 @@ fn fib(n: int): int {
print("Computing the value of fib(37)");
var x = clock();
var x = time.clock();
print(fib(37));
print(clock() - x);
print(time.clock() - x);
print("Done!");