summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorGordon Fontenot <gordon@thoughtbot.com>2013-03-15 12:56:08 -0300
committerGordon Fontenot <gordon@thoughtbot.com>2013-03-15 12:56:08 -0300
commitdacfd449b3593b5775fe7fec7b806dac88b97e56 (patch)
treee0f8ff093809dc00f1092739960b6f000a0338ca /README.md
parente60be5c85e7309251a2a94a8551575a78beda02e (diff)
downloadslop-dacfd449b3593b5775fe7fec7b806dac88b97e56.tar.gz
Update README.md
Update the documentation for Ruby's 1.9 hash syntax, and fix the example for the `:as` argument
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index 4e03b3e..dd8d5c5 100644
--- a/README.md
+++ b/README.md
@@ -175,8 +175,8 @@ require 'slop'
opts = Slop.parse do
on :n, :name=, 'Your name'
- on :a, :age=, 'Your age', :as => :int
+ on :a, :age=, 'Your age', as: Integer
end
opts.to_hash #=> { :name => 'lee', :age => 105 }
-``` \ No newline at end of file
+```