aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/active_support_core_extensions.md
diff options
context:
space:
mode:
authorAbdelkader Boudih <terminale@gmail.com>2015-04-17 12:16:14 +0100
committerAbdelkader Boudih <terminale@gmail.com>2015-04-17 12:16:14 +0100
commitf7a61c202659533e717f0832c40b79817e1a79de (patch)
tree465375d719fed57998b60042cb01514eb186a724 /guides/source/active_support_core_extensions.md
parentc8bab30ce5a7a40be7a3c7c4271e8ae6d2b303bb (diff)
parent4563062e72bb44d7a1cf1a94883f8c54b0b84902 (diff)
downloadrails-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/active_support_core_extensions.md')
-rw-r--r--guides/source/active_support_core_extensions.md2
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`.