mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-18 17:49:47 +00:00
fix factorial segfault
This commit is contained in:
parent
4ed6609974
commit
6724475724
2 changed files with 3 additions and 3 deletions
|
@ -32,7 +32,7 @@ public class Demo {
|
|||
// This can be implemented more peacefully but for sake of demonstration-
|
||||
// this will panic from the roc side if n is negative
|
||||
// and in turn will throw a JVM RuntimeException
|
||||
long n = 3;
|
||||
long n = 5;
|
||||
System.out.println("Factorial of " + n + " is " + factorial(n) + "\n");
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue