diff options
author | Ben Orenstein <ben.orenstein@gmail.com> | 2011-02-27 20:22:55 -0500 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2011-03-05 11:56:32 +0100 |
commit | 67af97c4c1561f28801a89a4d2c1c97b419e9fa4 (patch) | |
tree | 25adb663eb0bd1f2d4dee20a92cbdf227f244f94 /activesupport | |
parent | ea6a2b7c111cd3794b2ee41bc60a4071631d01aa (diff) | |
download | rails-67af97c4c1561f28801a89a4d2c1c97b419e9fa4.tar.gz rails-67af97c4c1561f28801a89a4d2c1c97b419e9fa4.tar.bz2 rails-67af97c4c1561f28801a89a4d2c1c97b419e9fa4.zip |
Fix incorrect example.
Diffstat (limited to 'activesupport')
-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 b40cbceb7e..8d8e6ebc58 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' |