about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-07-12 21:34:04 -0700
committerKartik Agaram <vc@akkartik.com>2020-07-12 21:34:04 -0700
commit6b8a3a94b1ae33fe053a13a4bbf96d9dc5eeb4b2 (patch)
tree435e7ebba41b6a07e7f1a1b545eb416975bb5107
parent8c78c3eb48ec3a443643dd370d75211ffbf63894 (diff)
downloadmu-6b8a3a94b1ae33fe053a13a4bbf96d9dc5eeb4b2.tar.gz
6642
-rw-r--r--mu.md20
1 files changed, 10 insertions, 10 deletions
diff --git a/mu.md b/mu.md
index c7534760..70932baa 100644
--- a/mu.md
+++ b/mu.md
@@ -431,16 +431,7 @@ rules:
 
 Try to avoid mixing these use cases.
 
-You can copy handles to another variable on the stack like this:
-
-```
-var x: (handle T)
-# ..some code initializing x..
-var y/eax: (addr handle T) <- address ...
-copy-handle x, y
-```
-
-You can also save handles inside compound types like this:
+You can save handles inside compound types like this:
 
 ```
 var y/reg: (addr handle T_f) <- get var: (addr T), f
@@ -454,6 +445,15 @@ var y/reg: (addr handle T) <- index arr: (addr array handle T), n
 copy-handle-to *y, x
 ```
 
+You can copy handles to another variable on the stack like this:
+
+```
+var x: (handle T)
+# ..some code initializing x..
+var y/eax: (addr handle T) <- address ...
+copy-handle x, y
+```
+
 ## Conclusion
 
 Anything not allowed here is forbidden. At least until you modify mu.subx.