diff options
author | Abdelkader Boudih <terminale@gmail.com> | 2015-04-17 16:13:28 +0100 |
---|---|---|
committer | Abdelkader Boudih <terminale@gmail.com> | 2015-04-17 16:13:28 +0100 |
commit | 1881a7715d0bf2e3d0c30f189051d727dd65e6ff (patch) | |
tree | 5604cadfe71ce7603cc654d4c54b60c1f8a083fe | |
parent | f7a61c202659533e717f0832c40b79817e1a79de (diff) | |
parent | 581906de53f93e9dbe706d347827d5936345a7a7 (diff) | |
download | rails-1881a7715d0bf2e3d0c30f189051d727dd65e6ff.tar.gz rails-1881a7715d0bf2e3d0c30f189051d727dd65e6ff.tar.bz2 rails-1881a7715d0bf2e3d0c30f189051d727dd65e6ff.zip |
Merge pull request #19800 from yui-knk/fix/wrap_doc3
[ci skip] Replace `list` with `array`
-rw-r--r-- | activesupport/lib/active_support/core_ext/array/wrap.rb | 2 | ||||
-rw-r--r-- | guides/source/active_support_core_extensions.md | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/core_ext/array/wrap.rb b/activesupport/lib/active_support/core_ext/array/wrap.rb index 152eb02218..10c5e2535d 100644 --- a/activesupport/lib/active_support/core_ext/array/wrap.rb +++ b/activesupport/lib/active_support/core_ext/array/wrap.rb @@ -3,7 +3,7 @@ class Array # # Specifically: # - # * If the argument is +nil+ an empty list is returned. + # * If the argument is +nil+ an empty array is returned. # * Otherwise, if the argument responds to +to_ary+ it is invoked, and its result returned. # * Otherwise, returns an array with the argument as its single element. # diff --git a/guides/source/active_support_core_extensions.md b/guides/source/active_support_core_extensions.md index 2967ce8355..fe2ab27a5a 100644 --- a/guides/source/active_support_core_extensions.md +++ b/guides/source/active_support_core_extensions.md @@ -2428,7 +2428,7 @@ The method `Array.wrap` wraps its argument in an array unless it is already an a Specifically: -* If the argument is `nil` an empty list is returned. +* If the argument is `nil` an empty array is returned. * Otherwise, if the argument responds to `to_ary` it is invoked, and if the value of `to_ary` is not `nil`, it is returned. * Otherwise, an array with the argument as its single element is returned. |