mirror of https://github.com/rails/rails
[ci skip] Replace `list` with `array`
This commit is contained in:
parent
f7a61c2026
commit
581906de53
|
@ -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.
|
||||
#
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in New Issue