about summary refs log tree commit diff stats
path: root/channel.mu
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-09-12 09:15:59 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-09-12 09:22:41 -0700
commitee72abae2159ad741087e98adeed06b7af1a8a8e (patch)
treecd5b48046fdefae8154c7ebe8b0b321c5a9ead32 /channel.mu
parente2b367dc2548ab80fc3e0949ee4f327c1c447758 (diff)
downloadmu-ee72abae2159ad741087e98adeed06b7af1a8a8e.tar.gz
3339
Fix a couple of failing example programs.
Diffstat (limited to 'channel.mu')
-rw-r--r--channel.mu1
1 files changed, 1 insertions, 0 deletions
diff --git a/channel.mu b/channel.mu
index e7415754..e2e1e758 100644
--- a/channel.mu
+++ b/channel.mu
@@ -16,6 +16,7 @@ def producer sink:address:sink:character -> sink:address:sink:character [
     n <- add n, 1
     loop
   }
+  close sink
 ]
 
 def consumer source:address:source:character -> source:address:source:character [