summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLeah Hanson <astrieanna@gmail.com>2013-07-01 17:03:05 -0400
committerLeah Hanson <astrieanna@gmail.com>2013-07-01 17:03:05 -0400
commit0f641aed5e7d52633f11443ff6d80ea0a8ee3fe1 (patch)
tree679c7125855006e33539719d6f9516f7e02fc1ea
parent2627624bb495a0d5450e493b685a938c70eaa32d (diff)
fixed try/catch section
-rw-r--r--julia.html.markdown9
1 files changed, 5 insertions, 4 deletions
diff --git a/julia.html.markdown b/julia.html.markdown
index 12f52e6e..5ba27efc 100644
--- a/julia.html.markdown
+++ b/julia.html.markdown
@@ -286,10 +286,11 @@ end
error("help") # ERROR: help in error at error.jl:21
try
- error("my error!")
-except
- println("caught it!")
-end
+ error("help")
+catch e
+ println("caught it $e")
+end
+#=> caught it ErrorException("help")
####################################################