about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-10-23 23:58:34 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-10-23 23:58:34 -0700
commit00438cd8a0f40fa60ab0d91720a846a1dc0d1c65 (patch)
tree5b59defdbc525165e9c945e9143463ff4ee73342
parent6a2ec6bfab3215274222d6b32a096b3d2ef506a8 (diff)
downloadmu-00438cd8a0f40fa60ab0d91720a846a1dc0d1c65.tar.gz
.
-rw-r--r--mu.md9
1 files changed, 5 insertions, 4 deletions
diff --git a/mu.md b/mu.md
index 050705d5..b7a62c2b 100644
--- a/mu.md
+++ b/mu.md
@@ -11,8 +11,8 @@ Define functions with the `fn` keyword. For example:
 ```
 
 Functions contain `{}` blocks, `var` declarations, primitive statements and
-calls to other functions. Primitive statements and function calls look
-similar:
+calls to other functions. Only `{}` blocks can nest. Primitive statements and
+function calls look similar:
 
 ```
   out1, out2, out3, ... <- operation inout1, inout2, inout3, ...
@@ -36,8 +36,9 @@ Declare local variables in a function using the `var` keyword.
 
 You can declare local variables in either registers or memory (the stack). So
 a `var` statement has two forms:
-  - `var x/eax: int <- copy 0`
-  - `var x: int`
+  - Living in a register, e.g. `var x/eax: int <- copy 0` defines `x` which
+    lives in `eax`.
+  - Living in memory, e.g. `var x: int` defines `x` on the stack.
 
 Variables in registers must be initialized. Variables on the stack are
 implicitly zeroed out.