Minor fix in handleBuiltinFunction() (whoopsie)
This commit is contained in:
parent
42ba738620
commit
7bae3ad249
|
@ -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!
|
|
@ -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!");
|
||||
|
|
Loading…
Reference in New Issue