about summary refs log tree commit diff stats
path: root/counters.mu
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-01-02 18:57:49 -0800
committerKartik K. Agaram <vc@akkartik.com>2015-01-02 18:57:49 -0800
commit8f9ec2fb316da2aea9837c89bb4afe690d89ba5d (patch)
tree6a1d757365ad957698407b3457537ba6650719c5 /counters.mu
parentd1c12218229989dc9a6e15b0190ae0ca05ecb20f (diff)
downloadmu-8f9ec2fb316da2aea9837c89bb4afe690d89ba5d.tar.gz
498 - how mu provides closures
Diffstat (limited to 'counters.mu')
-rw-r--r--counters.mu2
1 files changed, 1 insertions, 1 deletions
diff --git a/counters.mu b/counters.mu
index cd8825ce..6f26abae 100644
--- a/counters.mu
+++ b/counters.mu
@@ -6,7 +6,7 @@
 
 (function increment-counter [
   (default-space:space-address <- new space:literal 30:literal)
-  (0:space-address/names:init-counter <- next-input)  ; setup outer space
+  (0:space-address/names:init-counter <- next-input)  ; setup outer space; it *must* come from 'init-counter'
   (x:integer <- next-input)
   (n:integer/space:1 <- add n:integer/space:1 x:integer)
   (reply n:integer/space:1)