about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2014-12-08 19:19:16 -0800
committerKartik K. Agaram <vc@akkartik.com>2014-12-08 19:19:16 -0800
commitbe440cb6bf9fbdf317215cff2336cee63c7828ac (patch)
tree112ad0ff99f64e4c6c4d1d37e34a092432353353
parent18c794eb839d88c57a0acbf38a61277e89c8f39c (diff)
downloadmu-be440cb6bf9fbdf317215cff2336cee63c7828ac.tar.gz
399 - fix mu examples
Thanks Kristis Makris for the bug report.
-rw-r--r--channel.mu4
-rw-r--r--fork.mu4
2 files changed, 4 insertions, 4 deletions
diff --git a/channel.mu b/channel.mu
index c56e8889..3cd5ea0a 100644
--- a/channel.mu
+++ b/channel.mu
@@ -18,7 +18,7 @@
     ((n3 tagged-value-address) <- new-tagged-value (integer-address literal) (n2 integer-address))
     ((chan channel-address deref) <- write (chan channel-address) (n3 tagged-value-address deref))
     ((n integer) <- add (n integer) (1 literal))
-    (continue)
+    (loop)
   }
 ])
 
@@ -35,7 +35,7 @@
     (print-primitive ("consume: " literal))
     (print-primitive (n2 integer-address deref))
     (print-primitive ("\n" literal))
-    (continue)
+    (loop)
   }
 ])
 
diff --git a/fork.mu b/fork.mu
index b392dc7f..6366a208 100644
--- a/fork.mu
+++ b/fork.mu
@@ -4,7 +4,7 @@
   ((x integer) <- copy (34 literal))
   { begin
     (print-primitive (x integer))
-    (continue)
+    (loop)
   }
 ])
 
@@ -13,6 +13,6 @@
   ((y integer) <- copy (35 literal))
   { begin
     (print-primitive (y integer))
-    (continue)
+    (loop)
   }
 ])