about summary refs log tree commit diff stats
path: root/example1.mu
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-05-13 20:40:21 -0700
committerKartik Agaram <vc@akkartik.com>2018-05-13 20:41:21 -0700
commitecfa21dd5a107e8a8d05c36ca2a2c4a018e383a5 (patch)
tree288968b7378b37a15ee1afa863ad7529aa56307a /example1.mu
parent059def11cb8c53d85f7eed2af98a0bca0120a9cc (diff)
downloadmu-ecfa21dd5a107e8a8d05c36ca2a2c4a018e383a5.tar.gz
4245 - fix example1.mu to actually run
Thanks mahmudov on freenode IRC for the feedback! This was an
embarrassing oversight right at the top of my Readme.
Diffstat (limited to 'example1.mu')
-rw-r--r--example1.mu4
1 files changed, 3 insertions, 1 deletions
diff --git a/example1.mu b/example1.mu
index aebf22ba..83995a1e 100644
--- a/example1.mu
+++ b/example1.mu
@@ -1,5 +1,7 @@
-def example1 [
+def main [
   local-scope
   a:num <- add 2, 2
   a <- multiply a, 3
+  # uncomment the next line to see the output
+# $print a
 ]