about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--apps/factorial.mu4
-rw-r--r--mu-init.subx4
2 files changed, 4 insertions, 4 deletions
diff --git a/apps/factorial.mu b/apps/factorial.mu
index 5177daeb..a94be482 100644
--- a/apps/factorial.mu
+++ b/apps/factorial.mu
@@ -1,8 +1,8 @@
-fn main -> result/ebx: int {
+fn main -> exit-status/ebx: int {
 #?   run-tests
 #?   result <- copy 0
   var tmp/eax: int <- factorial 5
-  result <- copy tmp
+  exit-status <- copy tmp
 }
 
 fn factorial n: int -> result/eax: int {
diff --git a/mu-init.subx b/mu-init.subx
index cec9808d..4c9c145c 100644
--- a/mu-init.subx
+++ b/mu-init.subx
@@ -3,9 +3,9 @@
 # See translate_mu for how this file is used.
 #
 # Mu programs start at a function called 'main' with this signature:
-#   fn main args: (address array kernel-string) -> exit_status/ebx: int
+#   fn main args: (address array kernel-string) -> exit-status/ebx: int
 # If your program doesn't need commandline arguments you can drop it:
-#   fn main -> exit_status/ebx: int
+#   fn main -> exit-status/ebx: int
 #
 # Notice that the output must be in ebx, so that the exit() syscall can pick
 # it up.