mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-08 07:46:46 +02:00
Add colon to introduce the exception handling section
This commit is contained in:
@@ -272,7 +272,7 @@ else
|
||||
end
|
||||
#=> "OK job"
|
||||
|
||||
# exception handling
|
||||
# exception handling:
|
||||
begin
|
||||
# code here that might raise an exception
|
||||
raise NoMemoryError, 'You ran out of memory.'
|
||||
|
Reference in New Issue
Block a user