about summary refs log tree commit diff stats
path: root/tangle.mu
diff options
context:
space:
mode:
Diffstat (limited to 'tangle.mu')
-rw-r--r--tangle.mu4
1 files changed, 2 insertions, 2 deletions
diff --git a/tangle.mu b/tangle.mu
index 21d9800e..0a7bc05e 100644
--- a/tangle.mu
+++ b/tangle.mu
@@ -3,7 +3,7 @@
 ; This isn't a very realistic example, just a simple demonstration of
 ; possibilities.
 
-(def factorial [
+(function factorial [
   ((default-scope scope-address) <- new (scope literal) (30 literal))
   ((n integer) <- next-input)
   { begin
@@ -27,7 +27,7 @@
   (reply (result integer))
 ])
 
-(def main [
+(function main [
   ((1 integer) <- factorial (5 literal))
   (print-primitive ("result: " literal))
   (print-primitive (1 integer))