From 0f641aed5e7d52633f11443ff6d80ea0a8ee3fe1 Mon Sep 17 00:00:00 2001 From: Leah Hanson Date: Mon, 1 Jul 2013 17:03:05 -0400 Subject: fixed try/catch section --- julia.html.markdown | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'julia.html.markdown') 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") #################################################### -- cgit v1.2.3