about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-10-14 12:46:53 -0700
committerKartik Agaram <vc@akkartik.com>2020-10-14 12:46:53 -0700
commitd9f8784d4c73a257205f040eeb31414814db56f8 (patch)
treeab847bc9d7edbde07c64792a11d05c91b26bed52
parent7dd5a41e079d92ec9d0d09839ad009d66d2c1a17 (diff)
downloadmu-d9f8784d4c73a257205f040eeb31414814db56f8.tar.gz
7031
-rw-r--r--apps/factorial.mu2
-rw-r--r--html/apps/factorial.mu.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/factorial.mu b/apps/factorial.mu
index 5cd8c510..dab0ca90 100644
--- a/apps/factorial.mu
+++ b/apps/factorial.mu
@@ -38,7 +38,7 @@ fn main args-on-stack: (addr array (addr array byte)) -> exit-status/ebx: int {
   # len = length(args)
   var len/ecx: int <- length args
   $main-body: {
-    # if (len <= 1) factorial(5)
+    # if (len <= 1) return factorial(5)
     compare len, 1
     {
       break-if->
diff --git a/html/apps/factorial.mu.html b/html/apps/factorial.mu.html
index 958139cf..b26c4123 100644
--- a/html/apps/factorial.mu.html
+++ b/html/apps/factorial.mu.html
@@ -97,7 +97,7 @@ if ('onhashchange' in window) {
 <span id="L38" class="LineNr">38 </span>  <span class="muComment"># len = length(args)</span>
 <span id="L39" class="LineNr">39 </span>  <span class="PreProc">var</span> len/<span class="Constant">ecx</span>: int <span class="SpecialChar">&lt;-</span> length args
 <span id="L40" class="LineNr">40 </span>  $main-body: <span class="Delimiter">{</span>
-<span id="L41" class="LineNr">41 </span>    <span class="muComment"># if (len &lt;= 1) factorial(5)</span>
+<span id="L41" class="LineNr">41 </span>    <span class="muComment"># if (len &lt;= 1) return factorial(5)</span>
 <span id="L42" class="LineNr">42 </span>    compare len, <span class="Constant">1</span>
 <span id="L43" class="LineNr">43 </span>    <span class="Delimiter">{</span>
 <span id="L44" class="LineNr">44 </span>      <span class="PreProc">break-if-&gt;</span>