diff options
author | Abdelkader Boudih <terminale@gmail.com> | 2015-04-17 12:16:14 +0100 |
---|---|---|
committer | Abdelkader Boudih <terminale@gmail.com> | 2015-04-17 12:16:14 +0100 |
commit | f7a61c202659533e717f0832c40b79817e1a79de (patch) | |
tree | 465375d719fed57998b60042cb01514eb186a724 /guides/source | |
parent | c8bab30ce5a7a40be7a3c7c4271e8ae6d2b303bb (diff) | |
parent | 4563062e72bb44d7a1cf1a94883f8c54b0b84902 (diff) | |
download | rails-f7a61c202659533e717f0832c40b79817e1a79de.tar.gz rails-f7a61c202659533e717f0832c40b79817e1a79de.tar.bz2 rails-f7a61c202659533e717f0832c40b79817e1a79de.zip |
Merge pull request #19795 from yui-knk/fix/without_guide
[ci skip] Update code example of Enumerable#without
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/active_support_core_extensions.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/active_support_core_extensions.md b/guides/source/active_support_core_extensions.md index ff60f95a2c..2967ce8355 100644 --- a/guides/source/active_support_core_extensions.md +++ b/guides/source/active_support_core_extensions.md @@ -2188,7 +2188,7 @@ The method `without` returns a copy of an enumerable with the specified elements removed: ```ruby -people.without("Aaron", "Todd") +["David", "Rafael", "Aaron", "Todd"].without("Aaron", "Todd") # => ["David", "Rafael"] ``` NOTE: Defined in `active_support/core_ext/enumerable.rb`. |