about summary refs log tree commit diff stats
path: root/exception.mu
diff options
context:
space:
mode:
Diffstat (limited to 'exception.mu')
-rw-r--r--exception.mu6
1 files changed, 2 insertions, 4 deletions
diff --git a/exception.mu b/exception.mu
index 73c7ca78..88916c57 100644
--- a/exception.mu
+++ b/exception.mu
@@ -7,10 +7,8 @@
 
 def main [
   local-scope
-  no-exception:bool <- copy 0/false
-  foo no-exception
-  raise-exception:bool <- copy 1/true
-  foo raise-exception
+  foo 0/no-exception
+  foo 1/raise-exception
 ]
 
 # example showing exception handling