diff options
| author | Leah Hanson <astrieanna@gmail.com> | 2013-07-01 17:03:05 -0400 | 
|---|---|---|
| committer | Leah Hanson <astrieanna@gmail.com> | 2013-07-01 17:03:05 -0400 | 
| commit | 0f641aed5e7d52633f11443ff6d80ea0a8ee3fe1 (patch) | |
| tree | 679c7125855006e33539719d6f9516f7e02fc1ea /julia.html.markdown | |
| parent | 2627624bb495a0d5450e493b685a938c70eaa32d (diff) | |
fixed try/catch section
Diffstat (limited to 'julia.html.markdown')
| -rw-r--r-- | julia.html.markdown | 9 | 
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")  #################################################### | 
