Skip to content

Commit 62c62bc

Browse files
committed
Revert the guide after removing varargs from in?.
1 parent d7da403 commit 62c62bc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

guides/source/active_support_core_extensions.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -476,12 +476,11 @@ NOTE: Defined in `active_support/core_ext/kernel/reporting.rb`.
476476

477477
### `in?`
478478

479-
The predicate `in?` tests if an object is included in another object or a list of objects. An `ArgumentError` exception will be raised if a single argument is passed and it does not respond to `include?`.
479+
The predicate `in?` tests if an object is included in another object. An `ArgumentError` exception will be raised if the argument passed does not respond to `include?`.
480480

481481
Examples of `in?`:
482482

483483
```ruby
484-
1.in?(1,2) # => true
485484
1.in?([1,2]) # => true
486485
"lo".in?("hello") # => true
487486
25.in?(30..50) # => false

0 commit comments

Comments
 (0)