about summary refs log tree commit diff stats
path: root/html/tangle.mu.html
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-09-17 15:01:51 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-09-17 15:01:51 -0700
commitf344b250f6f062a1a1902bf69b23ebf9b565de0e (patch)
tree199bd32a9aee198d5028b1c21b83d2cf0944b2b6 /html/tangle.mu.html
parent897ae8c1855f830d8819759ea327d147f28a09bf (diff)
downloadmu-f344b250f6f062a1a1902bf69b23ebf9b565de0e.tar.gz
3395
Diffstat (limited to 'html/tangle.mu.html')
-rw-r--r--html/tangle.mu.html10
1 files changed, 5 insertions, 5 deletions
diff --git a/html/tangle.mu.html b/html/tangle.mu.html
index da54e95f..fb077e0b 100644
--- a/html/tangle.mu.html
+++ b/html/tangle.mu.html
@@ -38,7 +38,7 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color
 <span class="Comment"># This isn't a very tasteful example, just a simple demonstration of</span>
 <span class="Comment"># possibilities.</span>
 
-<span class="muRecipe">def</span> factorial n:number<span class="muRecipe"> -&gt; </span>result:number [
+<span class="muRecipe">def</span> factorial n:num<span class="muRecipe"> -&gt; </span>result:num [
   <span class="Constant">local-scope</span>
   <span class="Constant">load-ingredients</span>
   <span class="Delimiter">{</span>
@@ -56,15 +56,15 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color
 
 <span class="muRecipe">after</span> <span class="Constant">&lt;recursive-case&gt;</span> [
   <span class="Comment"># return n * factorial(n - 1)</span>
-  x:number<span class="Special"> &lt;- </span>subtract n, <span class="Constant">1</span>
-  subresult:number<span class="Special"> &lt;- </span>factorial x
+  x:num<span class="Special"> &lt;- </span>subtract n, <span class="Constant">1</span>
+  subresult:num<span class="Special"> &lt;- </span>factorial x
   result<span class="Special"> &lt;- </span>multiply subresult, n
 ]
 
 <span class="muRecipe">def</span> main [
-  <span class="Constant">1</span>:number<span class="Special"> &lt;- </span>factorial <span class="Constant">5</span>
+  <span class="Constant">1</span>:num<span class="Special"> &lt;- </span>factorial <span class="Constant">5</span>
   <span class="Comment"># trailing space in next line is to help with syntax highlighting</span>
-  $print <span class="Constant">[result: ]</span>, <span class="Constant">1</span>:number, <span class="Constant">[ </span>
+  $print <span class="Constant">[result: ]</span>, <span class="Constant">1</span>:num, <span class="Constant">[ </span>
 <span class="Constant">]</span>
 ]
 </pre>