about summary refs log tree commit diff stats
path: root/counters.mu
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-05-11 12:00:50 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-05-11 12:09:50 -0700
commitd2244a2f117618df541c52a1f7ec5d0fed8bcb7a (patch)
treeb0ba8cbe4cd30d176822227864a7343e3246cd99 /counters.mu
parent272e786bda374bd256759344b70f32381e021ee1 (diff)
downloadmu-d2244a2f117618df541c52a1f7ec5d0fed8bcb7a.tar.gz
1345
Diffstat (limited to 'counters.mu')
-rw-r--r--counters.mu9
1 files changed, 6 insertions, 3 deletions
diff --git a/counters.mu b/counters.mu
index 98199072..ef841400 100644
--- a/counters.mu
+++ b/counters.mu
@@ -23,9 +23,12 @@ recipe main [
   b:address:space <- init-counter 23:literal
   # increment both by 2 but in different ways
   increment-counter a:address:space, 1:literal
-  bres:integer <- increment-counter b:address:space, 2:literal
-  ares:integer <- increment-counter a:address:space, 1:literal
+  b-value:integer <- increment-counter b:address:space, 2:literal
+  a-value:integer <- increment-counter a:address:space, 1:literal
   # check results
-  $print [Contents of counters a: ], ares:integer, [ b: ], bres:integer, [
+  $print [Contents of counters
+]
+  # trailing space in next line is to help with syntax highlighting
+  $print [a: ], a-value:integer, [ b: ], b-value:integer, [ 
 ]
 ]