Permalink
Browse files

Fixed syntax for ruby 1.9 hash

  • Loading branch information...
1 parent 54b4f5a commit 00bf43003a479ec31111e0a0c8ffef7a0bf7d5ed @jasonong jasonong committed Mar 15, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 refresher.md
View
8 refresher.md
@@ -112,9 +112,9 @@ previously established rule.
}
person = {
- :first_name, "Albert",
- :last_name, "Einstein",
- :email, "al@wormhole.com"
+ first_name: "Albert",
+ last_name: "Einstein",
+ email: "al@wormhole.com"
}
puts "The capital of India is #{capitals['India']}"
@@ -335,7 +335,7 @@ previously established rule.
end
raise "String exception"
- raise
+ raise
begin
file = open("some_file", "w")

0 comments on commit 00bf430

Please sign in to comment.