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:
@@ -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.'
|
||||||
|
Reference in New Issue
Block a user