summaryrefslogtreecommitdiff
path: root/point.toc
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-01-06 11:31:25 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2020-01-06 11:31:25 -0500
commitdef83bb2ae78f12c5c9588bd6cdc639b8aaaf27e (patch)
tree468e49339a44f57b528299a465c3843f5e2b38b0 /point.toc
parentdc9cebe15132c5a15b3d0648285e9c86e40c14f6 (diff)
cleaning up; fixed a few bugs
Diffstat (limited to 'point.toc')
-rw-r--r--point.toc4
1 files changed, 1 insertions, 3 deletions
diff --git a/point.toc b/point.toc
index e37f37a..ede3c7c 100644
--- a/point.toc
+++ b/point.toc
@@ -4,9 +4,7 @@ pkg "point";
x, y: int;
};
-#export mk_point ::= fn(x, y: int) Point {
- p : Point;
+#export mk_point ::= fn(x, y: int) p : Point {
p.x = x;
p.y = y;
- p
};