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.mu7
1 files changed, 3 insertions, 4 deletions
diff --git a/tangle.mu b/tangle.mu
index 88722185..8b989957 100644
--- a/tangle.mu
+++ b/tangle.mu
@@ -6,9 +6,9 @@
 # This isn't a very tasteful example, just a simple demonstration of
 # possibilities.
 
-recipe factorial [
+recipe factorial n:number -> result:number [
   local-scope
-  n:number <- next-ingredient
+  load-ingredients
   {
     <base-case>
   }
@@ -26,8 +26,7 @@ after <recursive-case> [
   # return n * factorial(n - 1)
   x:number <- subtract n, 1
   subresult:number <- factorial x
-  result:number <- multiply subresult, n
-  reply result
+  result <- multiply subresult, n
 ]
 
 recipe main [