Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

ruby uses "begin," not "try"

  • Loading branch information...
commit caf01307f458dadeb7ab8340e3ea80ad40770d61 1 parent 996ae2b
@dabble dabble authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  refresher.md
View
2  refresher.md
@@ -148,7 +148,7 @@ previously established rule.
capitals.delete("China")
- try
+ begin
puts "The capital of China is #{capitals.fetch('China')}"
rescue KeyError
puts "OMG! China has no capital"
Please sign in to comment.
Something went wrong with that request. Please try again.