From 00868a186b1dbc424fb9ace644fd4ea7d38f22aa Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Tue, 14 Mar 2017 08:28:41 -0700 Subject: 3794 Fix a _very_ misleading comment. --- edit/005-sandbox.mu | 4 ++-- html/edit/005-sandbox.mu.html | 4 ++-- sandbox/005-sandbox.mu | 4 ++-- 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 - # only line different from render + # 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) { 418 move-cursor screen, row, left 419 ] 420 - 421 # like 'render' for texts, but with colorization for comments like in the editor + 421 # like 'render-text', but with colorization for comments like in the editor 422 def render-code screen:&:screen, s:text, left:num, right:num, row:num -> row:num, screen:&:screen [ 423 local-scope 424 load-ingredients @@ -499,7 +499,7 @@ if ('onhashchange' in window) { 436 ¦ done? <- greater-or-equal row, screen-height 437 ¦ break-if done? 438 ¦ c:char <- index *s, i - 439 ¦ <character-c-received> # only line different from render + 439 ¦ <character-c-received> # only line different from 'render-text' 440 ¦ { 441 ¦ ¦ # at right? wrap. 442 ¦ ¦ at-right?:bool <- 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 - # only line different from render + # only line different from 'render-text' { # at right? wrap. at-right?:bool <- equal column, right -- cgit 1.4.1-2-gfad0