Issue #9819 has been updated by Usaku NAKAMURA.

Backport changed from 2.0.0: UNKNOWN, 2.1: UNKNOWN to 2.0.0: REQUIRED, 2.1: REQUIRED

----------------------------------------
Bug #9819: changed documentation for enumerable methods find and detect
https://bugs.ruby-lang.org/issues/9819#change-47561

* Author: Rachel Logie
* Status: Closed
* Priority: Normal
* Assignee: Zachary Scott
* Category: doc
* Target version: 
* ruby -v: 2.1.1
* Backport: 2.0.0: REQUIRED, 2.1: REQUIRED
----------------------------------------
The docs right now under the enumerable method "find" contains only 2 examples using detect, and no examples with find. The usual pattern throughout the rest of the docs is that when two methods are aliases, such as detect and find, then both methods will show an example using each alias. So I just replaced one of the detect examples with find. This will be more clear for those people going to look up enumerable's find method and are confused that it only has examples of detect.

---Files--------------------------------
patch.txt (736 Bytes)


-- 
https://bugs.ruby-lang.org/