about summary refs log tree commit diff stats
path: root/html/channel.mu.html
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-11-29 14:18:52 -0800
committerKartik K. Agaram <vc@akkartik.com>2015-11-29 14:18:52 -0800
commitdb1f56c8449d2ea3d158753fe37bac5a750a2566 (patch)
tree508a24c522c040498dbe7d60036035f3c4ae440a /html/channel.mu.html
parent3670fb87f6d38c9ba4fcbb1eaa6439b4007a194e (diff)
downloadmu-db1f56c8449d2ea3d158753fe37bac5a750a2566.tar.gz
2611
Diffstat (limited to 'html/channel.mu.html')
-rw-r--r--html/channel.mu.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/html/channel.mu.html b/html/channel.mu.html
index 12babbde..15a75d1f 100644
--- a/html/channel.mu.html
+++ b/html/channel.mu.html
@@ -32,10 +32,10 @@ body { font-family: monospace; color: #eeeeee; background-color: #080808; }
 <pre id='vimCodeElement'>
 <span class="Comment"># example program: communicating between routines using channels</span>
 
-<span class="muRecipe">recipe</span> producer [
+<span class="muRecipe">recipe</span> producer chan:address:channel<span class="muRecipe"> -&gt; </span>chan:address:channel [
   <span class="Comment"># produce characters 1 to 5 on a channel</span>
   <span class="Constant">local-scope</span>
-  chan:address:channel<span class="Special"> &lt;- </span><span class="Constant">next-ingredient</span>
+  <span class="Constant">load-ingredients</span>
   <span class="Comment"># n = 0</span>
   n:character<span class="Special"> &lt;- </span>copy <span class="Constant">0</span>
   <span class="Delimiter">{</span>
@@ -50,10 +50,10 @@ body { font-family: monospace; color: #eeeeee; background-color: #080808; }
   <span class="Delimiter">}</span>
 ]
 
-<span class="muRecipe">recipe</span> consumer [
+<span class="muRecipe">recipe</span> consumer chan:address:channel<span class="muRecipe"> -&gt; </span>chan:address:channel [
   <span class="Comment"># consume and print integers from a channel</span>
   <span class="Constant">local-scope</span>
-  chan:address:channel<span class="Special"> &lt;- </span><span class="Constant">next-ingredient</span>
+  <span class="Constant">load-ingredients</span>
   <span class="Delimiter">{</span>
     <span class="Comment"># read an integer from the channel</span>
     n:character, chan:address:channel<span class="Special"> &lt;- </span>read chan