diff options
author | Ben Orenstein <ben.orenstein@gmail.com> | 2011-02-27 20:22:55 -0500 |
---|---|---|
committer | Ben Orenstein <ben.orenstein@gmail.com> | 2011-02-27 20:22:55 -0500 |
commit | b95f8be594d64509bb251ecd8315474fab368073 (patch) | |
tree | 4e0fedca5d0c4cec7684f07469cf61e678a55266 /activesupport/lib/active_support | |
parent | 9bbbae06c57da6a25c70e54877c4867310131db9 (diff) | |
download | rails-b95f8be594d64509bb251ecd8315474fab368073.tar.gz rails-b95f8be594d64509bb251ecd8315474fab368073.tar.bz2 rails-b95f8be594d64509bb251ecd8315474fab368073.zip |
Fix incorrect example.
Diffstat (limited to 'activesupport/lib/active_support')
-rw-r--r-- | activesupport/lib/active_support/ordered_options.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/ordered_options.rb b/activesupport/lib/active_support/ordered_options.rb index 124e1a74f8..f4c27ac935 100644 --- a/activesupport/lib/active_support/ordered_options.rb +++ b/activesupport/lib/active_support/ordered_options.rb @@ -2,13 +2,13 @@ require 'active_support/ordered_hash' # Usually key value pairs are handled something like this: # -# h = ActiveSupport::OrderedOptions.new +# h = {} # h[:boy] = 'John' # h[:girl] = 'Mary' # h[:boy] # => 'John' # h[:girl] # => 'Mary' # -# Using <tt>OrderedOptions</tt> above code could be reduced to: +# Using <tt>OrderedOptions</tt>, the above code could be reduced to: # # h = ActiveSupport::OrderedOptions.new # h.boy = 'John' |