summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
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
+```