about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2017-03-14 08:28:41 -0700
committerKartik K. Agaram <vc@akkartik.com>2017-03-14 08:28:41 -0700
commit00868a186b1dbc424fb9ace644fd4ea7d38f22aa (patch)
tree9fa715b06a79b9625bd47bf103efb0d6e177b974
parent16697d408cebb7e7060a76c4eb3c9a8fe1ae64e7 (diff)
downloadmu-00868a186b1dbc424fb9ace644fd4ea7d38f22aa.tar.gz
3794
Fix a _very_ misleading comment.
-rw-r--r--edit/005-sandbox.mu4
-rw-r--r--html/edit/005-sandbox.mu.html4
-rw-r--r--sandbox/005-sandbox.mu4
3 files changed, 6 insertions, 6 deletions
diff --git a/edit/005-sandbox.mu b/edit/005-sandbox.mu
index a77239ee..c896667e 100644
--- a/edit/005-sandbox.mu
+++ b/edit/005-sandbox.mu
@@ -418,7 +418,7 @@ def render-text screen:&:screen, s:text, left:num, right:num, color:num, row:num
   move-cursor screen, row, left
 ]
 
-# like 'render' for texts, but with colorization for comments like in the editor
+# like 'render-text', but with colorization for comments like in the editor
 def render-code screen:&:screen, s:text, left:num, right:num, row:num -> row:num, screen:&:screen [
   local-scope
   load-ingredients
@@ -436,7 +436,7 @@ def render-code screen:&:screen, s:text, left:num, right:num, row:num -> row:num
     done? <- greater-or-equal row, screen-height
     break-if done?
     c:char <- index *s, i
-    <character-c-received>  # only line different from render
+    <character-c-received>  # only line different from 'render-text'
     {
       # at right? wrap.
       at-right?:bool <- equal column, right
diff --git a/html/edit/005-sandbox.mu.html b/html/edit/005-sandbox.mu.html
index 0d1f536a..99df1990 100644
--- a/html/edit/005-sandbox.mu.html
+++ b/html/edit/005-sandbox.mu.html
@@ -481,7 +481,7 @@ if ('onhashchange' in window) {
 <span id="L418" class="LineNr"> 418 </span>  <a href='../081print.mu.html#L442'>move-cursor</a> <a href='../081print.mu.html#L4'>screen</a>, row, left
 <span id="L419" class="LineNr"> 419 </span>]
 <span id="L420" class="LineNr"> 420 </span>
-<span id="L421" class="LineNr"> 421 </span><span class="Comment"># like 'render' for texts, but with colorization for comments like in the editor</span>
+<span id="L421" class="LineNr"> 421 </span><span class="Comment"># like 'render-text', but with colorization for comments like in the editor</span>
 <span id="L422" class="LineNr"> 422 </span><span class="muRecipe">def</span> <a href='005-sandbox.mu.html#L422'>render-code</a> <a href='../081print.mu.html#L4'>screen</a>:&amp;:<a href='../081print.mu.html#L4'>screen</a>, s:text, left:num, right:num, row:num<span class="muRecipe"> -&gt; </span>row:num, <a href='../081print.mu.html#L4'>screen</a>:&amp;:<a href='../081print.mu.html#L4'>screen</a> [
 <span id="L423" class="LineNr"> 423 </span>  <span class="Constant">local-scope</span>
 <span id="L424" class="LineNr"> 424 </span>  <span class="Constant">load-ingredients</span>
@@ -499,7 +499,7 @@ if ('onhashchange' in window) {
 <span id="L436" class="LineNr"> 436 </span>  <span class="Conceal">¦</span> done? <span class="Special">&lt;-</span> greater-or-equal row, <a href='../081print.mu.html#L594'>screen-height</a>
 <span id="L437" class="LineNr"> 437 </span>  <span class="Conceal">¦</span> <span class="muControl">break-if</span> done?
 <span id="L438" class="LineNr"> 438 </span>  <span class="Conceal">¦</span> c:char <span class="Special">&lt;-</span> index *s, i
-<span id="L439" class="LineNr"> 439 </span>  <span class="Conceal">¦</span> <span class="Constant">&lt;character-c-received&gt;</span>  <span class="Comment"># only line different from render</span>
+<span id="L439" class="LineNr"> 439 </span>  <span class="Conceal">¦</span> <span class="Constant">&lt;character-c-received&gt;</span>  <span class="Comment"># only line different from 'render-text'</span>
 <span id="L440" class="LineNr"> 440 </span>  <span class="Conceal">¦</span> <span class="Delimiter">{</span>
 <span id="L441" class="LineNr"> 441 </span>  <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Comment"># at right? wrap.</span>
 <span id="L442" class="LineNr"> 442 </span>  <span class="Conceal">¦</span> <span class="Conceal">¦</span> at-right?:bool <span class="Special">&lt;-</span> equal column, right
diff --git a/sandbox/005-sandbox.mu b/sandbox/005-sandbox.mu
index 6b0098bb..d5bfbd62 100644
--- a/sandbox/005-sandbox.mu
+++ b/sandbox/005-sandbox.mu
@@ -408,7 +408,7 @@ def render-text screen:&:screen, s:text, left:num, right:num, color:num, row:num
   move-cursor screen, row, left
 ]
 
-# like 'render' for texts, but with colorization for comments like in the editor
+# like 'render-text', but with colorization for comments like in the editor
 def render-code screen:&:screen, s:text, left:num, right:num, row:num -> row:num, screen:&:screen [
   local-scope
   load-ingredients
@@ -426,7 +426,7 @@ def render-code screen:&:screen, s:text, left:num, right:num, row:num -> row:num
     done? <- greater-or-equal row, screen-height
     break-if done?
     c:char <- index *s, i
-    <character-c-received>  # only line different from render
+    <character-c-received>  # only line different from 'render-text'
     {
       # at right? wrap.
       at-right?:bool <- equal column, right