Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix incorrect example.

  • Loading branch information...
commit b95f8be594d64509bb251ecd8315474fab368073 1 parent 9bbbae0
@r00k r00k authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 activesupport/lib/active_support/ordered_options.rb
View
4 activesupport/lib/active_support/ordered_options.rb
@@ -2,13 +2,13 @@
# 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'
Please sign in to comment.
Something went wrong with that request. Please try again.