diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2011-02-17 16:59:03 +0530 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2011-02-17 16:59:03 +0530 |
commit | ed630dfc72109cbe0d89884a9ceacb20ef5b0fa3 (patch) | |
tree | 7f3c3815e694bf5fef473f5530490aa36da211c8 /railties | |
parent | bd7d8665a083f534f9d1aaa544d912f933b4fd61 (diff) | |
download | rails-ed630dfc72109cbe0d89884a9ceacb20ef5b0fa3.tar.gz rails-ed630dfc72109cbe0d89884a9ceacb20ef5b0fa3.tar.bz2 rails-ed630dfc72109cbe0d89884a9ceacb20ef5b0fa3.zip |
fix typo
Diffstat (limited to 'railties')
-rw-r--r-- | railties/guides/source/active_support_core_extensions.textile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/active_support_core_extensions.textile b/railties/guides/source/active_support_core_extensions.textile index cf9ebf44e6..9da8ecc6fc 100644 --- a/railties/guides/source/active_support_core_extensions.textile +++ b/railties/guides/source/active_support_core_extensions.textile @@ -2190,7 +2190,7 @@ Array.wrap(0) # => [0] This method is similar in purpose to <tt>Kernel#Array</tt>, but there are some differences: -* If the argument responds to +to_ary+ the method is invoked. <tt>Kernel#Array</tt> moves on to try +to_a+ if the returned value is +nil+, but <tt>Arraw.wrap</tt> returns such a +nil+ right away. +* If the argument responds to +to_ary+ the method is invoked. <tt>Kernel#Array</tt> moves on to try +to_a+ if the returned value is +nil+, but <tt>Array.wrap</tt> returns +nil+ right away. * If the returned value from +to_ary+ is neither +nil+ nor an +Array+ object, <tt>Kernel#Array</tt> raises an exception, while <tt>Array.wrap</tt> does not, it just returns the value. * It does not call +to_a+ on the argument, though special-cases +nil+ to return an empty array. |