From 581906de53f93e9dbe706d347827d5936345a7a7 Mon Sep 17 00:00:00 2001 From: yui-knk Date: Sat, 18 Apr 2015 00:04:43 +0900 Subject: [PATCH] [ci skip] Replace `list` with `array` --- activesupport/lib/active_support/core_ext/array/wrap.rb | 2 +- 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 152eb02218d..10c5e2535df 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 2967ce83555..fe2ab27a5a4 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.