summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc4
1 files changed, 2 insertions, 2 deletions
diff --git a/test.toc b/test.toc
index 18e8ef6..ea9ea79 100644
--- a/test.toc
+++ b/test.toc
@@ -31,7 +31,7 @@ arr_add ::= fn(t ::=, a : &Arr(t), x : t) {
square ::= fn(t ::=, x : t) t {
a : Arr(t);
each i := 1,2..2*x-1 {
- arr_add(t, &a, i);
+ arr_add(&a, i);
};
sum := 0 as t;
each i := 0..a.len-1 {
@@ -50,7 +50,7 @@ inc ::= fn(t ::=, x : t) t {
main ::= fn() {
arr : Arr(int);
farr : Arr(float);
- each i := 1..100 {
+ each i := 1..100 {
arr_add(&arr, inc(square(i)));
arr_add(&farr, inc(square(i as float)));
}