aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source
diff options
context:
space:
mode:
authoryui-knk <spiketeika@gmail.com>2015-04-17 19:58:13 +0900
committeryui-knk <spiketeika@gmail.com>2015-04-17 19:58:13 +0900
commit4563062e72bb44d7a1cf1a94883f8c54b0b84902 (patch)
tree465375d719fed57998b60042cb01514eb186a724 /guides/source
parentc8bab30ce5a7a40be7a3c7c4271e8ae6d2b303bb (diff)
downloadrails-4563062e72bb44d7a1cf1a94883f8c54b0b84902.tar.gz
rails-4563062e72bb44d7a1cf1a94883f8c54b0b84902.tar.bz2
rails-4563062e72bb44d7a1cf1a94883f8c54b0b84902.zip
[ci skip] Update code example of Enumerable#without
Diffstat (limited to 'guides/source')
-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`.