mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-20 10:39:48 +00:00
fixing embarrassing typos
This commit is contained in:
parent
2f6d82ad01
commit
eb4dfbca5a
2 changed files with 3 additions and 3 deletions
|
@ -24,7 +24,7 @@ public class Demo {
|
|||
int[] arr = {10, 20, 30, 40};
|
||||
int x = 3;
|
||||
System.out.println(Arrays.toString(arr) +
|
||||
" multipled by " + x +
|
||||
" multiplied by " + x +
|
||||
" results in " + Arrays.toString(mulArrByScalar(arr, x)) +
|
||||
"\n");
|
||||
|
||||
|
@ -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 = 5;
|
||||
long n = -1;
|
||||
System.out.println("Factorial of " + n + " is " + factorial(n));
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue