1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-06 23:06:49 +02:00

Add colon to introduce the exception handling section

This commit is contained in:
Levi Bostian
2014-11-11 13:06:57 -06:00
parent 9ddc2d0a5b
commit 1c4cbd279e

View File

@@ -272,7 +272,7 @@ else
end end
#=> "OK job" #=> "OK job"
# exception handling # exception handling:
begin begin
# code here that might raise an exception # code here that might raise an exception
raise NoMemoryError, 'You ran out of memory.' raise NoMemoryError, 'You ran out of memory.'