Skip to content

Commit

Permalink
chore: Updated example
Browse files Browse the repository at this point in the history
  • Loading branch information
giann committed Jun 27, 2024
1 parent fba730d commit e4d4c85
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Binary file modified example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 1 addition & 4 deletions examples/finobacci.buzz → examples/fibonacci.buzz
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ fun fibonacci(int n) > void *> int? {
}

fun main([str] args) > void {
const N = if (args.len() > 0)
std.parseInt(args[0]) ?? 10
else
10;
const N = std.parseInt(args[?0] ?? '10') ?? 10;

foreach (var n in &fibonacci(N)) {
std.print("{n}");
Expand Down

0 comments on commit e4d4c85

Please sign in to comment.